X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclient.hh;h=4bc7a517140df0ac4efb9af4be88e68d491310bf;hb=39c6969de2714904dec901c9d3f4e8b0ff01f062;hp=0d8465482313398ebb91b38c68ff3a0f6b6d64f3;hpb=58dc93abb91452444b932f3b2d9bbcc8003891b0;p=chaz%2Fopenbox diff --git a/src/client.hh b/src/client.hh index 0d846548..4bc7a517 100644 --- a/src/client.hh +++ b/src/client.hh @@ -602,6 +602,14 @@ BB @param window The window id that the Client class should handle //! Remove focus from the client window void unfocus() const; + //! Validate client, by making sure no Destroy or Unmap events exist in + //! the event queue for the window. + /*! + @return true if the client is valid; false if the client has already + been unmapped/destroyed, and so is invalid. + */ + bool validate() const; + virtual void focusHandler(const XFocusChangeEvent &e); virtual void unfocusHandler(const XFocusChangeEvent &e); virtual void propertyHandler(const XPropertyEvent &e);