initialize the net_showing_desktop hint
This commit is contained in:
parent
63646b38c4
commit
22b5d6458e
1 changed files with 6 additions and 2 deletions
|
@ -44,8 +44,6 @@ Screen::Screen(int screen)
|
||||||
assert(screen >= 0); assert(screen < ScreenCount(**otk::display));
|
assert(screen >= 0); assert(screen < ScreenCount(**otk::display));
|
||||||
_info = otk::display->screenInfo(screen);
|
_info = otk::display->screenInfo(screen);
|
||||||
|
|
||||||
_showing_desktop = false;
|
|
||||||
|
|
||||||
::running = false;
|
::running = false;
|
||||||
XErrorHandler old = XSetErrorHandler(::anotherWMRunning);
|
XErrorHandler old = XSetErrorHandler(::anotherWMRunning);
|
||||||
XSelectInput(**otk::display, _info->rootWindow(),
|
XSelectInput(**otk::display, _info->rootWindow(),
|
||||||
|
@ -113,6 +111,12 @@ Screen::Screen(int screen)
|
||||||
|
|
||||||
changeDesktop(0); // set the hint
|
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
|
// create the window which gets focus when no clients get it
|
||||||
XSetWindowAttributes attr;
|
XSetWindowAttributes attr;
|
||||||
attr.override_redirect = true;
|
attr.override_redirect = true;
|
||||||
|
|
Loading…
Reference in a new issue