From b13452a0c04d3945c5c8554c846adb3d4b6230b3 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 28 May 2002 10:15:08 +0000 Subject: [PATCH] when nothing is to be focused, give the root window focus instead of the toolbar (since the toolbar is not neccesarily mapped anymore!) --- src/blackbox.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blackbox.cc b/src/blackbox.cc index dd4c278e..eb5072dc 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -1161,17 +1161,17 @@ void Blackbox::setFocusedWindow(BlackboxWindow *win) { if (active_screen) { // set input focus to the toolbar of the screen with mouse XSetInputFocus(getXDisplay(), - active_screen->getToolbar()->getWindowID(), + active_screen->getRootWindow(), RevertToPointerRoot, CurrentTime); } else { // set input focus to the toolbar of the first managed screen XSetInputFocus(getXDisplay(), - screenList.front()->getToolbar()->getWindowID(), + screenList.front()->getRootWindow(), RevertToPointerRoot, CurrentTime); } } else { // set input focus to the toolbar of the last screen - XSetInputFocus(getXDisplay(), old_screen->getToolbar()->getWindowID(), + XSetInputFocus(getXDisplay(), old_screen->getRootWindow(), RevertToPointerRoot, CurrentTime); } } -- 2.39.2