[gtk+] [broadway] Fixup build



commit 859b6888c762b93730b5be0db605f8e3c0d7841e
Author: Alexander Larsson <alexl redhat com>
Date:   Fri May 11 14:49:15 2012 +0200

    [broadway] Fixup build
    
    Seems the return value of device_query_state was removed, it was
    TRUE always anyway.

 gdk/broadway/gdkdevice-broadway.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gdk/broadway/gdkdevice-broadway.c b/gdk/broadway/gdkdevice-broadway.c
index df10fa9..6af7270 100644
--- a/gdk/broadway/gdkdevice-broadway.c
+++ b/gdk/broadway/gdkdevice-broadway.c
@@ -383,11 +383,9 @@ gdk_broadway_device_window_at_position (GdkDevice       *device,
   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;
+  gdk_broadway_device_query_state (device, root_window, NULL, &window, NULL, NULL, win_x, win_y, mask);
 
-  return NULL;
+  return window;
 }
 
 static void



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