all repos — openbox @ 3ce8f836749c9f74f6888251f0a7f2ff601830c0

openbox fork - make it a bit more like ryudo

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
Dana Jansens danakj@orodu.net
commit

3ce8f836749c9f74f6888251f0a7f2ff601830c0

parent

138ee2c949cdce4bacd56110a322e990f1484cb6

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M openbox/grab.copenbox/grab.c

@@ -2,6 +2,7 @@ #include "grab.h"

#include "openbox.h" #include "event.h" #include "xerror.h" +#include "screen.h" #include <glib.h> #include <X11/Xlib.h>

@@ -42,7 +43,7 @@ gboolean ret = FALSE;

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;