all repos — openbox @ 91b078433073e674c0844de44124dbce4d1e2b82

openbox fork - make it a bit more like ryudo

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
commit

91b078433073e674c0844de44124dbce4d1e2b82

parent

1a145bba6121201126ac2ffcbb8b74b7d36c95e7

2 files changed, 4 insertions(+), 3 deletions(-)

jump to
M src/Window.ccsrc/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.ccsrc/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