all repos — openbox @ 7493785c1710ae5e2695b58e3c8e2f9f3f922140

openbox fork - make it a bit more like ryudo

new windows on non-visible workspaces should follow the same focus rules as those on the visible workspace. if "Focus New Windows" is on, then they should get focus when the workspace becomes visible.
Dana Jansens danakj@orodu.net
commit

7493785c1710ae5e2695b58e3c8e2f9f3f922140

parent

c258a4717a3ce354460d70f15675270b0188a50d

1 files changed, 10 insertions(+), 0 deletions(-)

jump to
M src/Workspace.ccsrc/Workspace.cc

@@ -91,6 +91,16 @@ clientmenu->insert(w->getTitle());

clientmenu->update(); screen->updateNetizenWindowAdd(w->getClientWindow(), id); + + if (id != screen->getCurrentWorkspaceID() && + screen->doFocusNew()) { + /* + 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 + when this workspace does become focused. + */ + lastfocus = w; + } } if (! w->isDesktop())