]> Dogcows Code - chaz/openbox/blobdiff - src/actions.cc
fix \'s
[chaz/openbox] / src / actions.cc
index e758dd0d056d8f383104908a52f833dd58e3137c..15a3e6c2667f0b9c88cd5a700f3d6fd9619c9709 100644 (file)
@@ -5,7 +5,7 @@
 #endif
 
 #include "actions.hh"
-#include "widget.hh"
+#include "widgetbase.hh"
 #include "openbox.hh"
 #include "client.hh"
 #include "screen.hh"
@@ -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);
+  }
 }
   
 
This page took 0.024674 seconds and 4 git commands to generate.