X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Feventhandler.hh;h=a70343edac8e3567bc989a83b9e4f5957f352514;hb=74cb09bb2cc4832463a57743b1495eef24237d2a;hp=05dfac3bc95c92b68176aa0eb8f4c2f56ff230ce;hpb=12a95bfdb31595ec53d72adef4e0fd6bf1ccf218;p=chaz%2Fopenbox diff --git a/otk/eventhandler.hh b/otk/eventhandler.hh index 05dfac3b..a70343ed 100644 --- a/otk/eventhandler.hh +++ b/otk/eventhandler.hh @@ -3,6 +3,10 @@ extern "C" { #include + +#ifdef SHAPE +#include +#endif // SHAPE } namespace otk { @@ -93,9 +97,6 @@ public: //! Called when the colormap changes, or is installed or unistalled virtual void colorMapHandler(const XColormapEvent &) {} - //! Called when a client calls XSendEvent - virtual void clientMessageHandler(const XClientMessageEvent &) {} - //! Called when a property of a window changes virtual void propertyHandler(const XPropertyEvent &) {} @@ -108,11 +109,23 @@ public: //! Called when a SelectionEvent occurs virtual void selectionRequestHandler(const XSelectionRequestEvent &) {} + //! Called when a client calls XSendEvent + /*! + Some types of client messages are filtered out and sent to more specific + event handler functions. + */ + virtual void clientMessageHandler(const XClientMessageEvent &); + +#if defined(SHAPE) || defined(DOXYGEN_IGNORE) + //! Called when a shape extention event fires + virtual void shapeHandler(const XShapeEvent &) {} +#endif // SHAPE + virtual ~OtkEventHandler(); protected: - /*! Constructor for the XEventHandler class. - This is protected so that XEventHandlers can't be instantiated on their + /*! Constructor for the OtkEventHandler class. + This is protected so that OtkEventHandlers can't be instantiated on their own. */ OtkEventHandler();