diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-07-10 19:01:41 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-07-10 19:01:41 +0000 |
| commit | 35418ca0fcd3fd28ef579f4435b8bad3b7c87f04 (patch) | |
| tree | 07182e5626a01baf752ec13a57d7ab3eabe8f967 /openbox/grab.c | |
| parent | ec908528cf2abad9d2b968db9c8f7287ef5f54fe (diff) | |
remove the ob_root var, its redundant of what Xlib already provides
Diffstat (limited to 'openbox/grab.c')
| -rw-r--r-- | openbox/grab.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/openbox/grab.c b/openbox/grab.c index 3f87f3b0..2d887784 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -20,8 +20,9 @@ gboolean grab_keyboard(gboolean grab) if (grab) { if (kgrabs++ == 0) - ret = XGrabKeyboard(ob_display, ob_root, FALSE, GrabModeAsync, - GrabModeAsync, event_lasttime) == Success; + ret = XGrabKeyboard(ob_display, RootWindow(ob_display, ob_screen), + FALSE, GrabModeAsync, GrabModeAsync, + event_lasttime) == Success; else ret = TRUE; } else if (kgrabs > 0) { @@ -39,10 +40,10 @@ gboolean grab_pointer(gboolean grab, ObCursor cur) if (grab) { if (pgrabs++ == 0) - ret = XGrabPointer(ob_display, ob_root, False, GRAB_PTR_MASK, - GrabModeAsync, GrabModeAsync, FALSE, - ob_cursor(cur), - event_lasttime) == Success; + ret = XGrabPointer(ob_display, RootWindow(ob_display, ob_screen), + False, GRAB_PTR_MASK, GrabModeAsync, + GrabModeAsync, FALSE, + ob_cursor(cur), event_lasttime) == Success; else ret = TRUE; } else if (pgrabs > 0) { |
