From 4c672be2e1f39e72eb7d7e99f129e61338f481b2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 22 Apr 2007 14:37:14 +0000 Subject: [PATCH] remove grab_pointer_window, nothing used it --- openbox/grab.c | 28 ---------------------------- openbox/grab.h | 2 -- 2 files changed, 30 deletions(-) diff --git a/openbox/grab.c b/openbox/grab.c index dfff9570..b81254a3 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -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)); } diff --git a/openbox/grab.h b/openbox/grab.h index 9f2cf562..088d2d6c 100644 --- a/openbox/grab.h +++ b/openbox/grab.h @@ -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(); -- 2.45.2