when a window is uniconified, ensure its nothe 'last focused window' on some other workspace
Dana Jansens danakj@orodu.net
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
src/Window.cc
→
src/Window.cc
@@ -1972,6 +1972,11 @@ // actually hold in our data.
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;