diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-01 19:34:52 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-01 19:34:52 +0000 |
| commit | e3521c2371c2d2c70c5d411c988fb19d2364d4f0 (patch) | |
| tree | 82f68018016e8dcc968c2af5437cd67b821f8e7a /openbox | |
| parent | b98021773bd39d70a0742176db73de9f81695576 (diff) | |
if a dock app has a button grabbed already then dont die
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/grab.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/grab.c b/openbox/grab.c index 2d887784..67c15bec 100644 --- 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) |
