summaryrefslogtreecommitdiff
path: root/src/blackbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/blackbox.cc')
-rw-r--r--src/blackbox.cc6
1 files 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);
}
}