From 39c6969de2714904dec901c9d3f4e8b0ff01f062 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 29 Jan 2003 08:58:28 +0000 Subject: allow for the client to be validated. don't manage override_redirect windows. don't manage windows for whome get attributes fails. validate the client before managing it. validate the client in functions that query stuff off it: propertyHandler and clientMessageHandler --- src/client.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/client.hh') 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); -- cgit v1.2.3