make the root window an obwidget type
This commit is contained in:
parent
506b5dbf6f
commit
82f4efb4e2
3 changed files with 6 additions and 3 deletions
|
@ -12,7 +12,8 @@
|
||||||
namespace ob {
|
namespace ob {
|
||||||
|
|
||||||
OBRootWindow::OBRootWindow(int screen)
|
OBRootWindow::OBRootWindow(int screen)
|
||||||
: _info(otk::OBDisplay::screenInfo(screen))
|
: OBWidget(OBWidget::Type_Root),
|
||||||
|
_info(otk::OBDisplay::screenInfo(screen))
|
||||||
{
|
{
|
||||||
updateDesktopNames();
|
updateDesktopNames();
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ extern "C" {
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "widget.hh"
|
||||||
#include "otk/screeninfo.hh"
|
#include "otk/screeninfo.hh"
|
||||||
#include "otk/eventhandler.hh"
|
#include "otk/eventhandler.hh"
|
||||||
#include "otk/property.hh"
|
#include "otk/property.hh"
|
||||||
|
@ -32,7 +33,7 @@ namespace ob {
|
||||||
<p>
|
<p>
|
||||||
OBRootWindow also manages client messages for the root window.
|
OBRootWindow also manages client messages for the root window.
|
||||||
*/
|
*/
|
||||||
class OBRootWindow : public otk::OtkEventHandler {
|
class OBRootWindow : public otk::OtkEventHandler, public OBWidget {
|
||||||
private:
|
private:
|
||||||
//! Information about this screen
|
//! Information about this screen
|
||||||
const otk::ScreenInfo *_info;
|
const otk::ScreenInfo *_info;
|
||||||
|
|
|
@ -18,7 +18,8 @@ public:
|
||||||
Type_StickyButton,
|
Type_StickyButton,
|
||||||
Type_LeftGrip,
|
Type_LeftGrip,
|
||||||
Type_RightGrip,
|
Type_RightGrip,
|
||||||
Type_Client
|
Type_Client,
|
||||||
|
Type_Root
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue