]> Dogcows Code - chaz/openbox/blobdiff - src/actions.hh
better double click processing
[chaz/openbox] / src / actions.hh
index 924a8dc0c29bfe5307dc65b612334ee80b8cd215..35e8e313445270f6fa8afd4a895ef36eebde3c81 100644 (file)
@@ -20,22 +20,19 @@ namespace ob {
 */
 class OBActions : public otk::OtkEventHandler {
 public:
-  struct MousePressAction {
+  struct MouseButtonAction {
     Window win;
     unsigned int button;
     Time time;
-    MousePressAction() { win = 0; button = 0; time = 0; }
+    MouseButtonAction() { win = 0; button = 0; time = 0; }
   };
   
 private:
   // milliseconds XXX: config option
   static const unsigned int DOUBLECLICKDELAY;
   
-  //! The last 2 button presses processed for CLICKs
-  /*!
-    Inserted such that index 0 is the latest action.
-  */
-  MousePressAction *_presses[2];
+  //! The last 2 button release processed for CLICKs
+  MouseButtonAction _release;
   //! The mouse button currently being watched from a press for a CLICK
   unsigned int _button;
   //! The window the last enter action occured on (where the mouse is located)
This page took 0.020906 seconds and 4 git commands to generate.