[gtk+/xi2: 950/1239] GdkDeviceXI2: confine_to is unused in grab(), mark it as such.



commit 7dfa90118481c5ed0cf916f7c78f02658295e833
Author: Carlos Garnacho <carlos lanedo com>
Date:   Mon Aug 31 01:12:11 2009 +0200

    GdkDeviceXI2: confine_to is unused in grab(), mark it as such.

 gdk/x11/gdkdevice-xi2.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c
index b4891a0..39e2a94 100644
--- a/gdk/x11/gdkdevice-xi2.c
+++ b/gdk/x11/gdkdevice-xi2.c
@@ -288,22 +288,16 @@ gdk_device_xi2_grab (GdkDevice    *device,
   GdkDeviceXI2Private *priv;
   GdkDisplay *display;
   XIEventMask mask;
-  Window xwindow, xconfine_to;
+  Window xwindow;
   Cursor xcursor;
   int status;
 
   priv = GDK_DEVICE_XI2_GET_PRIVATE (device);
   display = gdk_device_get_display (device);
 
-  xwindow = GDK_WINDOW_XID (window);
-
-  if (confine_to)
-    confine_to = _gdk_window_get_impl_window (confine_to);
+  /* FIXME: confine_to is actually unused */
 
-  if (!confine_to || GDK_WINDOW_DESTROYED (confine_to))
-    xconfine_to = None;
-  else
-    xconfine_to = GDK_WINDOW_XID (confine_to);
+  xwindow = GDK_WINDOW_XID (window);
 
   if (!cursor)
     xcursor = None;



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