]> Dogcows Code - chaz/openbox/blobdiff - src/rootwindow.hh
support net_wm_strut's! nothing to do with them yet however
[chaz/openbox] / src / rootwindow.hh
index 7879244dabdf25d84f10241cb80092ece1899ae0..5ff386e1dd99254afc5532ce0723e7cb8ef02f19 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef   __rootwindow_hh
 #define   __rootwindow_hh
 
-/*! @file client.hh
+/*! @file rootwindow.hh
   @brief The OBClient class maintains the state of a client window by handling
   property changes on the window and some client messages
 */
@@ -18,6 +18,7 @@ extern "C" {
 #include <string>
 #include <vector>
 
+#include "widget.hh"
 #include "otk/screeninfo.hh"
 #include "otk/eventhandler.hh"
 #include "otk/property.hh"
@@ -32,7 +33,7 @@ namespace ob {
   <p>
   OBRootWindow also manages client messages for the root window.
 */
-class OBRootWindow : public otk::OtkEventHandler {
+class OBRootWindow : public otk::OtkEventHandler, public OBWidget {
 private:
   //! Information about this screen
   const otk::ScreenInfo *_info;
@@ -52,16 +53,19 @@ public:
   //! Destroys the OBRootWindow object
   virtual ~OBRootWindow();
 
-  virtual void propertyHandler(const XPropertyEvent &e);
-
-  virtual void clientMessageHandler(const XClientMessageEvent &e);
-
+  //! Sets the name of all desktops
+  void setDesktopNames(const otk::OBProperty::StringVect &names);
+  
   //! Sets the name of a desktop
   /*!
     @param i The index of the desktop to set the name for (base 0)
     @param name The name to set for the desktop
   */
   void setDesktopName(int i, const std::string &name);
+
+  virtual void propertyHandler(const XPropertyEvent &e);
+  virtual void clientMessageHandler(const XClientMessageEvent &e);
+  virtual void mapRequestHandler(const XMapRequestEvent &);
 };
 
 }
This page took 0.020891 seconds and 4 git commands to generate.