]> Dogcows Code - chaz/openbox/blobdiff - src/Workspace.cc
add the date
[chaz/openbox] / src / Workspace.cc
index 7e05e4c91520360ad4cf8b34cb8b061f76c2ee7e..11d5187ddf35512a8a9cfbc69fecff71d3f16c91 100644 (file)
@@ -84,7 +84,7 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) {
   if (place) placeWindow(w);
 
   stackingList.push_front(w);
-    
+
   if (w->isNormal()) {
     if (! sticky) {
       w->setWorkspace(id);
@@ -101,9 +101,7 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) {
 
     if (screen->doFocusNew() || (w->isTransient() && w->getTransientFor() &&
                                  w->getTransientFor()->isFocused())) {
-      if (id == screen->getCurrentWorkspaceID())
-        w->setInputFocus();
-      else {
+      if (id != screen->getCurrentWorkspaceID()) {
         /*
            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
This page took 0.023135 seconds and 4 git commands to generate.