From: Dana Jansens Date: Tue, 28 May 2002 10:15:08 +0000 (+0000) Subject: when nothing is to be focused, give the root window focus instead of the toolbar... X-Git-Tag: openbox-1_2_2^2~26 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=b13452a0c04d3945c5c8554c846adb3d4b6230b3;p=dana%2Fopenbox.git when nothing is to be focused, give the root window focus instead of the toolbar (since the toolbar is not neccesarily mapped anymore!) --- 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); } }