when a window is uniconified, ensure its nothe 'last focused window' on some other workspace
This commit is contained in:
parent
98c17f1809
commit
3816b6a257
1 changed files with 5 additions and 0 deletions
|
@ -1972,6 +1972,11 @@ void BlackboxWindow::stick(void) {
|
|||
xatom->setValue(client.window, XAtom::net_wm_desktop, XAtom::cardinal,
|
||||
blackbox_attrib.workspace);
|
||||
|
||||
for (unsigned int i = 0; i < screen->getNumberOfWorkspaces(); ++i)
|
||||
if (i != blackbox_attrib.workspace)
|
||||
if (screen->getWorkspace(i)->getLastFocusedWindow() == this)
|
||||
screen->getWorkspace(i)->focusFallback(this);
|
||||
|
||||
setState(current_state);
|
||||
} else {
|
||||
flags.stuck = True;
|
||||
|
|
Loading…
Reference in a new issue