initialize the net_showing_desktop hint
Dana Jansens danakj@orodu.net
1 files changed,
6 insertions(+),
2 deletions(-)
jump to
M
src/screen.cc
→
src/screen.cc
@@ -44,8 +44,6 @@ {
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(),@@ -112,6 +110,12 @@ _num_desktops = 1;
changeNumDesktops(_num_desktops); // 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 XSetWindowAttributes attr;