From: Dana Jansens Date: Sat, 27 Jul 2002 08:19:40 +0000 (+0000) Subject: when a window is uniconified, ensure its nothe 'last focused window' on some other... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=3816b6a25701983efc92dcadb04937006e4506cf;p=chaz%2Fopenbox when a window is uniconified, ensure its nothe 'last focused window' on some other workspace --- diff --git a/src/Window.cc b/src/Window.cc index 97393e5f..1662484a 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -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;