summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-20 14:44:20 +0000
committerDana Jansens <danakj@orodu.net>2002-12-20 14:44:20 +0000
commit82f4efb4e2d6f836a2f5f7e7b41be4be73ae7518 (patch)
tree5731726877dbffe4285b5c8bff7c94f5fc786399
parent506b5dbf6f2624df57f09b5c7ba15098b1590cd5 (diff)
make the root window an obwidget type
-rw-r--r--src/rootwindow.cc3
-rw-r--r--src/rootwindow.hh3
-rw-r--r--src/widget.hh3
3 files changed, 6 insertions, 3 deletions
diff --git a/src/rootwindow.cc b/src/rootwindow.cc
index 3fccc44a..04b39d87 100644
--- a/src/rootwindow.cc
+++ b/src/rootwindow.cc
@@ -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();
diff --git a/src/rootwindow.hh b/src/rootwindow.hh
index c05bfd7b..180f239c 100644
--- a/src/rootwindow.hh
+++ b/src/rootwindow.hh
@@ -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;
diff --git a/src/widget.hh b/src/widget.hh
index 6b9ffe77..2af01e24 100644
--- a/src/widget.hh
+++ b/src/widget.hh
@@ -18,7 +18,8 @@ public:
Type_StickyButton,
Type_LeftGrip,
Type_RightGrip,
- Type_Client
+ Type_Client,
+ Type_Root
};
private: