[gtk+/xi2] query_state should not never return root window
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/xi2] query_state should not never return root window
- Date: Mon, 10 May 2010 20:34:26 +0000 (UTC)
commit 74fb3285073015d0b3db7ef5fe35fbcea7763f9e
Author: Kristian Rietveld <kris gtk org>
Date: Wed Mar 10 17:31:34 2010 +0100
query_state should not never return root window
gdk/quartz/gdkdevice-core.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gdk/quartz/gdkdevice-core.c b/gdk/quartz/gdkdevice-core.c
index dcd3204..d5d1260 100644
--- a/gdk/quartz/gdkdevice-core.c
+++ b/gdk/quartz/gdkdevice-core.c
@@ -233,14 +233,10 @@ gdk_device_core_query_state_helper (GdkWindow *window,
found_window = _gdk_quartz_window_find_child (window, x_tmp, y_tmp,
FALSE);
- /* FIXME: Translate!!! */
-#if 0
- /* We never return the root window. */
if (found_window == _gdk_root)
found_window = NULL;
-#endif
- if (found_window)
+ else if (found_window)
translate_coords_to_child_coords (window, found_window,
&x_tmp, &y_tmp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]