From: Dana Jansens Date: Tue, 16 Sep 2003 07:48:55 +0000 (+0000) Subject: grab the pointer on the screen_support_win, causing all mouse events during a grab... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=3ce8f836749c9f74f6888251f0a7f2ff601830c0;p=chaz%2Fopenbox grab the pointer on the screen_support_win, causing all mouse events during a grab to not be acted on as if they were on the root window/context --- diff --git a/openbox/grab.c b/openbox/grab.c index 1e2f207b..96e5873e 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -2,6 +2,7 @@ #include "openbox.h" #include "event.h" #include "xerror.h" +#include "screen.h" #include #include @@ -42,7 +43,7 @@ gboolean grab_pointer(gboolean grab, ObCursor cur) if (grab) { if (pgrabs++ == 0) - ret = XGrabPointer(ob_display, RootWindow(ob_display, ob_screen), + ret = XGrabPointer(ob_display, screen_support_win, False, GRAB_PTR_MASK, GrabModeAsync, GrabModeAsync, FALSE, ob_cursor(cur), event_lasttime) == Success;