]> Dogcows Code - chaz/openbox/commitdiff
when nothing is to be focused, give the root window focus instead of the toolbar...
authorDana Jansens <danakj@orodu.net>
Tue, 28 May 2002 10:15:08 +0000 (10:15 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 28 May 2002 10:15:08 +0000 (10:15 +0000)
src/blackbox.cc

index dd4c278ea6c6242ba8c7048b911bf7104cf19e31..eb5072dca3567c358c8cd5b09ed1221d2596c4a1 100644 (file)
@@ -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);
     }
   }
This page took 0.025266 seconds and 4 git commands to generate.