X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Factions.hh;h=7168fce459a95c1c58a30ab56b9b781d4dbab952;hb=38f8155bf50af2a2bf13e8767236dae924abb157;hp=3d45966e171125e7483c35cbbc58e95d915c5e57;hpb=772ff27864b724c884ca5681fedc42711c63ec82;p=chaz%2Fopenbox diff --git a/src/actions.hh b/src/actions.hh index 3d45966e..7168fce4 100644 --- a/src/actions.hh +++ b/src/actions.hh @@ -7,6 +7,7 @@ */ #include "otk/point.hh" +#include "otk/rect.hh" #include "otk/eventhandler.hh" extern "C" { @@ -32,6 +33,7 @@ public: struct ButtonPressAction { unsigned int button; otk::Point pos; + otk::Rect clientarea; ButtonPressAction() { button = 0; } }; @@ -49,6 +51,8 @@ private: Used for motion events as the starting position. */ ButtonPressAction *_posqueue[BUTTONS]; + //! The delta x/y of the last motion sequence + int _dx, _dy; //! Insert a button/position in the _posqueue void insertPress(const XButtonEvent &e); @@ -56,7 +60,9 @@ private: void removePress(const XButtonEvent &e); public: + //! Constructs an OBActions object OBActions(); + //! Destroys the OBActions object virtual ~OBActions(); virtual void buttonPressHandler(const XButtonEvent &e);