initialize the net_showing_desktop hint

This commit is contained in:
Dana Jansens 2003-02-10 22:49:46 +00:00
parent 63646b38c4
commit 22b5d6458e

View 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;