diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-05-28 10:15:08 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-05-28 10:15:08 +0000 |
| commit | b13452a0c04d3945c5c8554c846adb3d4b6230b3 (patch) | |
| tree | ef7e60bc99757d5beb38bbea530e52ef1fcb2167 | |
| parent | 57ac5e5b5eba515f3d6b8a194b3a389a6d44a186 (diff) | |
when nothing is to be focused, give the root window focus instead of the toolbar (since the toolbar is not neccesarily mapped anymore!)
| -rw-r--r-- | src/blackbox.cc | 6 |
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); } } |
