[gtk+/saved/mir: 13/47] Fix return windows in gdk_mir_pointer_query_state



commit 1312c07ae23114f724400d3006154287d3d96dd7
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue May 27 11:36:47 2014 +0200

    Fix return windows in gdk_mir_pointer_query_state

 gdk/mir/gdkmirpointer.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gdk/mir/gdkmirpointer.c b/gdk/mir/gdkmirpointer.c
index 21877cd..9db4d9b 100644
--- a/gdk/mir/gdkmirpointer.c
+++ b/gdk/mir/gdkmirpointer.c
@@ -18,6 +18,7 @@
 #include "config.h"
 
 #include "gdkdeviceprivate.h"
+#include "gdkscreen.h"
 
 typedef struct GdkMirPointer      GdkMirPointer;
 typedef struct GdkMirPointerClass GdkMirPointerClass;
@@ -144,10 +145,11 @@ gdk_mir_pointer_query_state (GdkDevice        *device,
 {
   g_printerr ("gdk_mir_pointer_query_state\n");
   GdkMirPointer *p = GDK_MIR_POINTER (device);
+
   if (root_window)
-    ;//*root_window = ?; // FIXME
+    *root_window = gdk_screen_get_root_window (gdk_display_get_default_screen (gdk_device_get_display 
(device)));
   if (child_window)
-    ;//*child_window = ?; // FIXME
+    *child_window = p->over_window;
   if (root_x)
     *root_x = p->x;
   if (root_y)


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