]> Dogcows Code - chaz/openbox/commitdiff
fix case where the window group deletes itself. somehow missed this while syncing! :(
authorDana Jansens <danakj@orodu.net>
Sun, 14 Jul 2002 18:47:52 +0000 (18:47 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 14 Jul 2002 18:47:52 +0000 (18:47 +0000)
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.027686 seconds and 4 git commands to generate.