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