all repos — openbox @ 3816b6a25701983efc92dcadb04937006e4506cf

openbox fork - make it a bit more like ryudo

when a window is uniconified, ensure its nothe 'last focused window' on some other workspace
Dana Jansens danakj@orodu.net
commit

3816b6a25701983efc92dcadb04937006e4506cf

parent

98c17f18099ea9198d61950f2f1537e4ea16702f

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M src/Window.ccsrc/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;