fix case where the window group deletes itself. somehow missed this while syncing! :(

This commit is contained in:
Dana Jansens 2002-07-14 18:47:52 +00:00
parent 3312a209d7
commit c6a826bf66

View file

@ -1094,8 +1094,11 @@ void BlackboxWindow::getWMHints(void) {
// add window to the appropriate group // add window to the appropriate group
BWindowGroup *group = blackbox->searchGroup(client.window_group); BWindowGroup *group = blackbox->searchGroup(client.window_group);
if (! group) // no group found, create it! if (! group) { // no group found, create it!
group = new BWindowGroup(blackbox, client.window_group); new BWindowGroup(blackbox, client.window_group);
group = blackbox->searchGroup(client.window_group);
}
if (group)
group->addWindow(this); group->addWindow(this);
} }