]> Dogcows Code - chaz/openbox/commitdiff
make the root window an obwidget type
authorDana Jansens <danakj@orodu.net>
Fri, 20 Dec 2002 14:44:20 +0000 (14:44 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 20 Dec 2002 14:44:20 +0000 (14:44 +0000)
src/rootwindow.cc
src/rootwindow.hh
src/widget.hh

index 3fccc44a12418f5a3b3b2ef630fc4f758eee2522..04b39d877598472476aa7da3705b705a209e5644 100644 (file)
@@ -12,7 +12,8 @@
 namespace ob {
 
 OBRootWindow::OBRootWindow(int screen)
-  : _info(otk::OBDisplay::screenInfo(screen))
+  : OBWidget(OBWidget::Type_Root),
+    _info(otk::OBDisplay::screenInfo(screen))
 {
   updateDesktopNames();
 
index c05bfd7b25993cd965b60c4d06c1cac8696c7d45..180f239c5baeb301d9c6422931556237c97ec748 100644 (file)
@@ -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;
index 6b9ffe77b5d321efd9ecc1c66eec0b6dfc1d4565..2af01e2434257a7cf97f4b6689b4cd34ecf6ef8e 100644 (file)
@@ -18,7 +18,8 @@ public:
     Type_StickyButton,
     Type_LeftGrip,
     Type_RightGrip,
-    Type_Client
+    Type_Client,
+    Type_Root
   };
 
 private:
This page took 0.0241170000000001 seconds and 4 git commands to generate.