all repos — openbox @ 3addcd8bb9c65db54c43d6c829c2b041e4959ca9

openbox fork - make it a bit more like ryudo

don't queue showmenu events, and set button to 0 when a grab is in place after the buttonpress event is run
Dana Jansens danakj@orodu.net
commit

3addcd8bb9c65db54c43d6c829c2b041e4959ca9

parent

6f936115b1868b18f2f7b707407f7fecaf635c04

2 files changed, 6 insertions(+), 1 deletions(-)

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

@@ -1143,7 +1143,7 @@ /* XXX UGLY HACK race with motion event starting a move and the

button release gettnig processed first. answer: don't queue moveresize starts. UGLY HACK XXX */ if (a->data.any.interactive || a->func == action_move || - a->func == action_resize) + a->func == action_resize || a->func == action_showmenu) { /* interactive actions are not queued */ a->func(&a->data);
M openbox/mouse.copenbox/mouse.c

@@ -205,6 +205,11 @@ e->xbutton.button,

e->xbutton.x_root, e->xbutton.y_root, e->xbutton.time); + /* if the bindings grab the pointer, there won't be a ButtonRelease + event for us */ + if (grab_on_pointer()) + button = 0; + if (CLIENT_CONTEXT(context, client)) { /* Replay the event, so it goes to the client*/ XAllowEvents(ob_display, ReplayPointer, event_curtime);