]> Dogcows Code - chaz/openbox/commitdiff
remove grab_pointer_window, nothing used it
authorDana Jansens <danakj@orodu.net>
Sun, 22 Apr 2007 14:37:14 +0000 (14:37 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 22 Apr 2007 14:37:14 +0000 (14:37 +0000)
openbox/grab.c
openbox/grab.h

index dfff9570e3c6dab1aa8a9e4e2590f7236fca58a9..b81254a3972626cb1e187cd5ae23e953a4b72613 100644 (file)
@@ -114,33 +114,6 @@ gboolean grab_pointer(gboolean grab, gboolean owner_events, ObCursor cur)
     return ret;
 }
 
-gboolean grab_pointer_window(gboolean grab, gboolean owner_events,
-                             ObCursor cur, Window win)
-{
-    gboolean ret = FALSE;
-
-    if (grab) {
-        if (pgrabs++ == 0) {
-            ret = XGrabPointer(ob_display, win, owner_events,
-                               GRAB_PTR_MASK,
-                               GrabModeAsync, GrabModeAsync, None,
-                               ob_cursor(cur),
-                               event_curtime) == Success;
-            if (!ret)
-                --pgrabs;
-            else
-                grab_time = event_curtime;
-        } else
-            ret = TRUE;
-    } else if (pgrabs > 0) {
-        if (--pgrabs == 0) {
-            XUngrabPointer(ob_display, ungrab_time());
-        }
-        ret = TRUE;
-    }
-    return ret;
-}
-
 gint grab_server(gboolean grab)
 {
     static guint sgrabs = 0;
@@ -181,7 +154,6 @@ void grab_shutdown(gboolean reconfig)
 
     while (grab_keyboard(FALSE));
     while (grab_pointer(FALSE, FALSE, OB_CURSOR_NONE));
-    while (grab_pointer_window(FALSE, FALSE, OB_CURSOR_NONE, None));
     while (grab_server(FALSE));
 }
 
index 9f2cf562f09353575000fc5eb8b08671666372e8..088d2d6c792f2691f9438ac6deb4472a5d128aca 100644 (file)
@@ -29,8 +29,6 @@ void grab_shutdown(gboolean reconfig);
 
 gboolean grab_keyboard(gboolean grab);
 gboolean grab_pointer(gboolean grab, gboolean owner_events, ObCursor cur);
-gboolean grab_pointer_window(gboolean grab, gboolean owner_events,
-                             ObCursor cur, Window win);
 gint grab_server(gboolean grab);
 
 gboolean grab_on_keyboard();
This page took 0.030237 seconds and 4 git commands to generate.