[gtk+/broadway: 240/246] broadway: Implement gdk_broadway_device_window_at_position



commit 4408e9d958c858bedb2223c4f586cd186f4238b1
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Mar 14 21:40:59 2011 +0100

    broadway: Implement gdk_broadway_device_window_at_position
    
    This is required for ungrabs to work properly

 gdk/broadway/gdkdevice-broadway.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gdk/broadway/gdkdevice-broadway.c b/gdk/broadway/gdkdevice-broadway.c
index 6b2b672..8c4679d 100644
--- a/gdk/broadway/gdkdevice-broadway.c
+++ b/gdk/broadway/gdkdevice-broadway.c
@@ -362,6 +362,18 @@ gdk_broadway_device_window_at_position (GdkDevice       *device,
 					GdkModifierType *mask,
 					gboolean         get_toplevel)
 {
+  gboolean res;
+  GdkScreen *screen;
+  GdkWindow *root_window;
+  GdkWindow *window;
+
+  screen = gdk_screen_get_default ();
+  root_window = gdk_screen_get_root_window (screen);
+
+  res = gdk_broadway_device_query_state (device, root_window, NULL, &window, NULL, NULL, win_x, win_y, mask);
+  if (res)
+    return window;
+
   return NULL;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]