From 3816b6a25701983efc92dcadb04937006e4506cf Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 27 Jul 2002 08:19:40 +0000 Subject: [PATCH] when a window is uniconified, ensure its nothe 'last focused window' on some other workspace --- src/Window.cc | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.2