X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fscreen.cc;h=d50ef6a32a40178db2a3fc3eee4d02f9e6fc5885;hb=a6f5b33ad90637705af9717c978bf895455c71ba;hp=c121c20f582ac5a88ab92f9ea8a4b839a90a1e9a;hpb=1a879a4e3e91f5c27c2c217012166e72add0b4fc;p=chaz%2Fopenbox diff --git a/src/screen.cc b/src/screen.cc index c121c20f..d50ef6a3 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -93,7 +93,7 @@ OBScreen::OBScreen(int screen) // set up notification of netwm support setSupportedAtoms(); - // Set the netwm atoms for geomtery and viewport + // Set the netwm properties for geometry and viewport unsigned long geometry[] = { _info->width(), _info->height() }; Openbox::instance->property()->set(_info->rootWindow(), @@ -106,6 +106,11 @@ OBScreen::OBScreen(int screen) otk::OBProperty::Atom_Cardinal, viewport, 2); + // Set the net_desktop_names property + std::vector names; + python_get_stringlist("desktop_names", &names); + _root.setDesktopNames(names); + // create the window which gets focus when no clients get it XSetWindowAttributes attr; attr.override_redirect = true; @@ -521,7 +526,7 @@ void OBScreen::manageWindow(Window window) // XXX: if on the current desktop.. client->frame->show(); - // XXX: handle any requested states such as shaded/maximized + // XXX: handle any requested states such as maximized otk::OBDisplay::ungrab();