diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-07-26 20:03:31 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-20 01:36:54 -0500 |
| commit | 6c8acc079a9cbb40245e5df4b50b3f8b9c17cf83 (patch) | |
| tree | 70432a7643ac99542aac129b22503e9cacfa667f /openbox/grab.c | |
| parent | 5960d27b1c35c58d3c1731c71c44b9c61328a34d (diff) | |
add prop.[ch] to the libobt, but they are not used yet. add a global obt_display which obt can use, and the application.
Diffstat (limited to 'openbox/grab.c')
| -rw-r--r-- | openbox/grab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbox/grab.c b/openbox/grab.c index cfbbbe1a..fea2b62e 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -175,11 +175,11 @@ void grab_button_full(guint button, guint state, Window win, guint mask, guint i; /* can get BadAccess from these */ - obt_display_ignore_errors(ob_display, TRUE); + obt_display_ignore_errors(TRUE); for (i = 0; i < MASK_LIST_SIZE; ++i) XGrabButton(ob_display, button, state | mask_list[i], win, False, mask, pointer_mode, GrabModeAsync, None, ob_cursor(cur)); - obt_display_ignore_errors(ob_display, FALSE); + obt_display_ignore_errors(FALSE); if (obt_display_error_occured) ob_debug("Failed to grab button %d modifiers %d", button, state); } @@ -197,11 +197,11 @@ void grab_key(guint keycode, guint state, Window win, gint keyboard_mode) guint i; /* can get BadAccess' from these */ - obt_display_ignore_errors(ob_display, TRUE); + obt_display_ignore_errors(TRUE); for (i = 0; i < MASK_LIST_SIZE; ++i) XGrabKey(ob_display, keycode, state | mask_list[i], win, FALSE, GrabModeAsync, keyboard_mode); - obt_display_ignore_errors(ob_display, FALSE); + obt_display_ignore_errors(FALSE); if (obt_display_error_occured) ob_debug("Failed to grab keycode %d modifiers %d", keycode, state); } |
