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
This commit is contained in:
parent
138ee2c949
commit
3ce8f83674
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
#include "openbox.h"
|
||||
#include "event.h"
|
||||
#include "xerror.h"
|
||||
#include "screen.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue