]> Dogcows Code - chaz/openbox/blobdiff - src/Workspace.cc
set a workspace and window number even for !normal windows
[chaz/openbox] / src / Workspace.cc
index 97a7ee732a1a2de7163e68a810d6d42a1a0a4e4d..1cb40b390b61620ba124a5c6caae99c64e630052 100644 (file)
@@ -110,6 +110,11 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) {
         lastfocus = w;
       }
     }
+  } else {
+    w->setWorkspace(id);
+    // just give it some number, else bad things happen as it is assumed to not
+    // be on a workspace
+    w->setWindowNumber(0);
   }
 
   if (! w->isDesktop())
This page took 0.025683 seconds and 4 git commands to generate.