all repos — openbox @ 82f4efb4e2d6f836a2f5f7e7b41be4be73ae7518

openbox fork - make it a bit more like ryudo

make the root window an obwidget type
Dana Jansens danakj@orodu.net
commit

82f4efb4e2d6f836a2f5f7e7b41be4be73ae7518

parent

506b5dbf6f2624df57f09b5c7ba15098b1590cd5

3 files changed, 6 insertions(+), 3 deletions(-)

jump to
M src/rootwindow.ccsrc/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();
M src/rootwindow.hhsrc/rootwindow.hh

@@ -18,6 +18,7 @@

#include <string> #include <vector> +#include "widget.hh" #include "otk/screeninfo.hh" #include "otk/eventhandler.hh" #include "otk/property.hh"

@@ -32,7 +33,7 @@ gravity.

<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;
M src/widget.hhsrc/widget.hh

@@ -18,7 +18,8 @@ Type_IconifyButton,

Type_StickyButton, Type_LeftGrip, Type_RightGrip, - Type_Client + Type_Client, + Type_Root }; private: