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.
This commit is contained in:
parent
c258a4717a
commit
7493785c17
1 changed files with 10 additions and 0 deletions
|
@ -91,6 +91,16 @@ void Workspace::addWindow(BlackboxWindow *w, bool place) {
|
||||||
clientmenu->update();
|
clientmenu->update();
|
||||||
|
|
||||||
screen->updateNetizenWindowAdd(w->getClientWindow(), id);
|
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())
|
if (! w->isDesktop())
|
||||||
|
|
Loading…
Reference in a new issue