X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Factions.cc;h=15a3e6c2667f0b9c88cd5a700f3d6fd9619c9709;hb=bc88d310fea71823fb2c61d071ff499579bffaba;hp=7b538de676bbaee170801f1e71fd4b77931156e8;hpb=c8e246f8de5af9963b22cc104d22ca10772028dd;p=chaz%2Fopenbox diff --git a/src/actions.cc b/src/actions.cc index 7b538de6..15a3e6c2 100644 --- a/src/actions.cc +++ b/src/actions.cc @@ -88,6 +88,17 @@ void OBActions::buttonPressHandler(const XButtonEvent &e) 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(e); + } }