diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-20 15:38:49 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-20 15:38:49 +0000 |
| commit | 68194ce957db36ead19a39fdc7636a220befafe9 (patch) | |
| tree | c405d332e6189babdb2ffc055a075cb718176f17 /src/rootwindow.cc | |
| parent | 06de24ec6666578759eff2b348e50f5e8e20f3bd (diff) | |
update to cleaned up otk api
Diffstat (limited to 'src/rootwindow.cc')
| -rw-r--r-- | src/rootwindow.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rootwindow.cc b/src/rootwindow.cc index 04b39d87..364f6144 100644 --- a/src/rootwindow.cc +++ b/src/rootwindow.cc @@ -17,7 +17,7 @@ OBRootWindow::OBRootWindow(int screen) { updateDesktopNames(); - Openbox::instance->registerHandler(_info->getRootWindow(), this); + Openbox::instance->registerHandler(_info->rootWindow(), this); } @@ -34,7 +34,7 @@ void OBRootWindow::updateDesktopNames() unsigned long num = (unsigned) -1; - if (!property->get(_info->getRootWindow(), + if (!property->get(_info->rootWindow(), otk::OBProperty::net_desktop_names, otk::OBProperty::utf8, &num, &_names)) _names.clear(); @@ -88,7 +88,7 @@ void OBRootWindow::setDesktopName(int i, const std::string &name) otk::OBProperty::StringVect newnames = _names; newnames[i] = name; - property->set(_info->getRootWindow(), otk::OBProperty::net_desktop_names, + property->set(_info->rootWindow(), otk::OBProperty::net_desktop_names, otk::OBProperty::utf8, newnames); } @@ -104,8 +104,7 @@ void OBRootWindow::mapRequestHandler(const XMapRequestEvent &e) if (client) { // XXX: uniconify and/or unshade the window } else { - Openbox::instance->screen(_info->getScreenNumber())-> - manageWindow(e.window); + Openbox::instance->screen(_info->screen())->manageWindow(e.window); } } |
