]> Dogcows Code - chaz/openbox/commitdiff
added sticky windows in the wrong place, before the window was even fully initialized...
authorDana Jansens <danakj@orodu.net>
Sun, 28 Jul 2002 18:40:15 +0000 (18:40 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 28 Jul 2002 18:40:15 +0000 (18:40 +0000)
src/Workspace.cc

index 70d1923c83788fe89bd6ec9f1a86ea65ad2fa1f5..f4a09680ac4e3c5e587c003ef009077217026cfd 100644 (file)
@@ -85,14 +85,6 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) {
 
   stackingList.push_front(w);
     
-  // if the window is sticky, then it needs to be added on all other
-  // workspaces too!
-  if (! sticky && w->isStuck()) {
-    for (unsigned int i = 0; i < screen->getWorkspaceCount(); ++i)
-      if (i != id)
-        screen->getWorkspace(i)->addWindow(w, place, True);
-  }
-
   if (w->isNormal()) {
     if (! sticky) {
       w->setWorkspace(id);
@@ -126,6 +118,14 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) {
     raiseWindow(w);
   else
     lowerWindow(w);
+  
+  // if the window is sticky, then it needs to be added on all other
+  // workspaces too!
+  if (! sticky && w->isStuck()) {
+    for (unsigned int i = 0; i < screen->getWorkspaceCount(); ++i)
+      if (i != id)
+        screen->getWorkspace(i)->addWindow(w, place, True);
+  }
 }
 
 
This page took 0.023698 seconds and 4 git commands to generate.