- ret = XGrabPointer(ob_display, screen_support_win,
- True, 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;
-}
-
-gboolean grab_pointer_window(gboolean grab, ObCursor cur, Window win)
-{
- gboolean ret = FALSE;
-
- if (grab) {
- if (pgrabs++ == 0) {
- ret = XGrabPointer(ob_display, win, True, GRAB_PTR_MASK,
+ ret = XGrabPointer(ob_display, screen_support_win, owner_events,
+ GRAB_PTR_MASK,