projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b980217
)
if a dock app has a button grabbed already then dont die
author
Dana Jansens
<danakj@orodu.net>
Fri, 1 Aug 2003 19:34:52 +0000
(19:34 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 1 Aug 2003 19:34:52 +0000
(19:34 +0000)
openbox/grab.c
patch
|
blob
|
history
diff --git
a/openbox/grab.c
b/openbox/grab.c
index 2d8877841fd1145de68b7eb59fbceb21291f460a..67c15becd7935a3052c4ab99e1357374ed5f704c 100644
(file)
--- a/
openbox/grab.c
+++ b/
openbox/grab.c
@@
-120,9
+120,14
@@
void grab_button_full(guint button, guint state, Window win, guint mask,
{
guint i;
+ xerror_set_ignore(TRUE); /* can get BadAccess' from these */
+ xerror_occured = FALSE;
for (i = 0; i < MASK_LIST_SIZE; ++i)
XGrabButton(ob_display, button, state | mask_list[i], win, FALSE, mask,
pointer_mode, GrabModeSync, None, ob_cursor(cur));
+ xerror_set_ignore(FALSE);
+ if (xerror_occured)
+ g_warning("failed to grab keycode %d modifiers %d", keycode, state);
}
void grab_button(guint button, guint state, Window win, guint mask)