don't actually focus windows when adding them to the current workspace. this is already handled elsewhere, ands the window probably isnt evenmapped yet
Dana Jansens danakj@orodu.net
2 files changed,
4 insertions(+),
3 deletions(-)
M
src/Window.cc
→
src/Window.cc
@@ -2706,6 +2706,8 @@ case XA_WM_COMMAND:
break; case XA_WM_TRANSIENT_FOR: { + bool s = flags.stuck; + // determine if this is a transient window getTransientInfo();@@ -2714,6 +2716,7 @@ if (isTransient()) {
functions &= ~Func_Maximize; setAllowedActions(); setupDecor(); + if (flags.stuck != s) stick(); } reconfigure();
M
src/Workspace.cc
→
src/Workspace.cc
@@ -101,9 +101,7 @@ screen->updateNetizenWindowAdd(w->getClientWindow(), id);
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