diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-04 08:12:09 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-04 08:12:09 +0000 |
| commit | 90ae66cc44a93ab1419821944c258e72d1e4b559 (patch) | |
| tree | 0c5e9b161b1d9fc3f7369f90c6f499b2fdcacfcd /src/actions.hh | |
| parent | 0a15728be441cf687ef93fd2ab8c38266adacd94 (diff) | |
better double click processing
Diffstat (limited to 'src/actions.hh')
| -rw-r--r-- | src/actions.hh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/actions.hh b/src/actions.hh index 924a8dc0..35e8e313 100644 --- a/src/actions.hh +++ b/src/actions.hh @@ -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) |
