From: Dana Jansens Date: Mon, 10 Feb 2003 22:49:46 +0000 (+0000) Subject: initialize the net_showing_desktop hint X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=22b5d6458e3001a7bd930bf3491bf7fcd26ac3ce;p=chaz%2Fopenbox initialize the net_showing_desktop hint --- diff --git a/src/screen.cc b/src/screen.cc index 3461178d..0c90d747 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -44,8 +44,6 @@ Screen::Screen(int screen) assert(screen >= 0); assert(screen < ScreenCount(**otk::display)); _info = otk::display->screenInfo(screen); - _showing_desktop = false; - ::running = false; XErrorHandler old = XSetErrorHandler(::anotherWMRunning); XSelectInput(**otk::display, _info->rootWindow(), @@ -113,6 +111,12 @@ Screen::Screen(int screen) changeDesktop(0); // set the hint + // don't start in showing-desktop mode + _showing_desktop = false; + otk::Property::set(_info->rootWindow(), + otk::Property::atoms.net_showing_desktop, + otk::Property::atoms.cardinal, 0); + // create the window which gets focus when no clients get it XSetWindowAttributes attr; attr.override_redirect = true;