[gtk+] quartz: don't return FALSE from GdkDevice::query_state()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] quartz: don't return FALSE from GdkDevice::query_state()
- Date: Sat, 22 Oct 2011 21:23:35 +0000 (UTC)
commit 077b3668793dde83fbde707aedcad22bdf27a50e
Author: Michael Natterer <mitch gimp org>
Date: Sat Oct 22 21:32:49 2011 +0200
quartz: don't return FALSE from GdkDevice::query_state()
Not finding a child window to return is not a failure.
gdk/quartz/gdkdevice-core-quartz.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gdk/quartz/gdkdevice-core-quartz.c b/gdk/quartz/gdkdevice-core-quartz.c
index ff90c4a..98de868 100644
--- a/gdk/quartz/gdkdevice-core-quartz.c
+++ b/gdk/quartz/gdkdevice-core-quartz.c
@@ -268,7 +268,6 @@ gdk_quartz_device_core_query_state (GdkDevice *device,
gint *win_y,
GdkModifierType *mask)
{
- GdkDisplay *display;
GdkWindow *found_window;
NSPoint point;
gint x_tmp, y_tmp;
@@ -276,10 +275,6 @@ gdk_quartz_device_core_query_state (GdkDevice *device,
found_window = gdk_quartz_device_core_query_state_helper (window, device,
win_x, win_y,
mask);
- if (!found_window)
- return FALSE;
-
- display = gdk_window_get_display (window);
if (root_window)
*root_window = _gdk_root;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]