]> Dogcows Code - chaz/openbox/commitdiff
initialize the net_showing_desktop hint
authorDana Jansens <danakj@orodu.net>
Mon, 10 Feb 2003 22:49:46 +0000 (22:49 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 10 Feb 2003 22:49:46 +0000 (22:49 +0000)
src/screen.cc

index 3461178d6c3d80ac616af0778c63e3b6ff870da9..0c90d747b9de86e63eeef0121e4e17fa0076b0c4 100644 (file)
@@ -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;
This page took 0.026209 seconds and 4 git commands to generate.