X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FWorkspace.cc;h=11d5187ddf35512a8a9cfbc69fecff71d3f16c91;hb=75b6a5a378966efc09c355109ab42467ddc6d845;hp=7e05e4c91520360ad4cf8b34cb8b061f76c2ee7e;hpb=f3a54e41a0e220cf42e717ebae0b5fe8eb2a614c;p=chaz%2Fopenbox diff --git a/src/Workspace.cc b/src/Workspace.cc index 7e05e4c9..11d5187d 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -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