when a window is uniconified, ensure its nothe 'last focused window' on some other workspace

This commit is contained in:
Dana Jansens 2002-07-27 08:19:40 +00:00
parent 98c17f1809
commit 3816b6a257

View file

@ -1972,6 +1972,11 @@ void BlackboxWindow::stick(void) {
xatom->setValue(client.window, XAtom::net_wm_desktop, XAtom::cardinal, xatom->setValue(client.window, XAtom::net_wm_desktop, XAtom::cardinal,
blackbox_attrib.workspace); 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); setState(current_state);
} else { } else {
flags.stuck = True; flags.stuck = True;