]> Dogcows Code - chaz/openbox/blobdiff - src/Window.cc
properly handle workspace names, and changes to them.
[chaz/openbox] / src / Window.cc
index c32acbdfc738208a890185f1c2b6dcb888f853a8..07b9975805c350b6e6d0d435785c31de4133c916 100644 (file)
@@ -1094,9 +1094,12 @@ void BlackboxWindow::getWMHints(void) {
 
     // add window to the appropriate group
     BWindowGroup *group = blackbox->searchGroup(client.window_group);
-    if (! group) // no group found, create it!
-      group = new BWindowGroup(blackbox, client.window_group);
-    group->addWindow(this);
+    if (! group) { // no group found, create it!
+      new BWindowGroup(blackbox, client.window_group);
+      group = blackbox->searchGroup(client.window_group);
+    }
+    if (group)
+      group->addWindow(this);
   }
 
   client.wm_hint_flags = wmhint->flags;
This page took 0.020524 seconds and 4 git commands to generate.