From: Dana Jansens Date: Sun, 14 Jul 2002 18:47:52 +0000 (+0000) Subject: fix case where the window group deletes itself. somehow missed this while syncing! :( X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=c6a826bf663d3cb286025642f5e2a725b5d1c660;p=chaz%2Fopenbox fix case where the window group deletes itself. somehow missed this while syncing! :( --- diff --git a/src/Window.cc b/src/Window.cc index c32acbdf..07b99758 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -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;