]> Dogcows Code - chaz/openbox/commitdiff
when a window is uniconified, ensure its nothe 'last focused window' on some other...
authorDana Jansens <danakj@orodu.net>
Sat, 27 Jul 2002 08:19:40 +0000 (08:19 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 27 Jul 2002 08:19:40 +0000 (08:19 +0000)
src/Window.cc

index 97393e5f1b37a6f62befeceae58c75e91800cbb2..1662484ad8660b23e10f50dfa435988a359bbfa6 100644 (file)
@@ -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;
This page took 0.030842 seconds and 4 git commands to generate.