]> Dogcows Code - chaz/openbox/blobdiff - src/client.hh
allow for the client to be validated.
[chaz/openbox] / src / client.hh
index 0d8465482313398ebb91b38c68ff3a0f6b6d64f3..4bc7a517140df0ac4efb9af4be88e68d491310bf 100644 (file)
@@ -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);
This page took 0.020912 seconds and 4 git commands to generate.