all repos — openbox @ e3521c2371c2d2c70c5d411c988fb19d2364d4f0

openbox fork - make it a bit more like ryudo

if a dock app has a button grabbed already then dont die
Dana Jansens danakj@orodu.net
commit

e3521c2371c2d2c70c5d411c988fb19d2364d4f0

parent

b98021773bd39d70a0742176db73de9f81695576

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M openbox/grab.copenbox/grab.c

@@ -120,9 +120,14 @@ int pointer_mode, ObCursor cur)

{ 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)