]> Dogcows Code - chaz/openbox/commitdiff
new windows on non-visible workspaces should follow the same focus rules as those...
authorDana Jansens <danakj@orodu.net>
Sat, 20 Jul 2002 20:44:29 +0000 (20:44 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 20 Jul 2002 20:44:29 +0000 (20:44 +0000)
src/Workspace.cc

index 26b48e42f0f139055b0359f08f0b0ccdfc31d928..0a95c24f04e644a76d2f98cc2f59e69e41fc8995 100644 (file)
@@ -91,6 +91,16 @@ void Workspace::addWindow(BlackboxWindow *w, bool place) {
     clientmenu->update();
 
     screen->updateNetizenWindowAdd(w->getClientWindow(), id);
+
+    if (id != screen->getCurrentWorkspaceID() &&
+        screen->doFocusNew()) {
+      /*
+         not on the focused workspace, so the window is not going to get focus
+         but if the user wants new windows focused, then it should get focus
+         when this workspace does become focused.
+      */
+      lastfocus = w;
+    }
   }
 
   if (! w->isDesktop())
This page took 0.025629 seconds and 4 git commands to generate.