all repos — openbox @ a0333b52d8db7e68a440236b132ffd3b7629872f

openbox fork - make it a bit more like ryudo

when i get a button press on the client window, i have to manufacture the release, because i never will get one from the x server
Dana Jansens danakj@orodu.net
commit

a0333b52d8db7e68a440236b132ffd3b7629872f

parent

7a95b5a949e590745a5a9a878e1386e7bd7d1b72

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

jump to
M src/actions.ccsrc/actions.cc

@@ -88,6 +88,17 @@

if (_button) return; // won't count toward CLICK events _button = e.button; + + if (w->mcontext() == MC_Window) { + /* + Because of how events are grabbed on the client window, we can't get + ButtonRelease events, so instead we simply manufacture them here, so that + clicks/doubleclicks etc still work. + */ + XButtonEvent ev = e; + ev.type = ButtonRelease; + buttonReleaseHandler(ev); + } }