]> Dogcows Code - chaz/openbox/blobdiff - src/Screen.cc
merge the sticky window fix from 1.2.
[chaz/openbox] / src / Screen.cc
index 175d966d82dde5673d287759a95ce9801a538559..08b76971b267fed91dffc00f7d60b32f05fb5fc6 100644 (file)
@@ -1976,11 +1976,9 @@ void BScreen::load() {
       workspacemenu->setItemSelected(current_workspace->getWorkspaceID() + 2,
                                      False);
 
-      if (openbox.focusedWindow() &&
-          openbox.focusedWindow()->getScreen() == this &&
-          (! openbox.focusedWindow()->isStuck())) {
-        openbox.focusWindow(0);
-      }
+    OpenboxWindow *fw = openbox.focusedWindow();
+    if (fw && fw->getScreen() == this)
+      openbox.focusWindow(0);
 
       current_workspace = getWorkspace(id);
 
This page took 0.025799 seconds and 4 git commands to generate.