From 22b5d6458e3001a7bd930bf3491bf7fcd26ac3ce Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 10 Feb 2003 22:49:46 +0000 Subject: [PATCH] initialize the net_showing_desktop hint --- src/screen.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; -- 2.45.2