diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-14 18:47:52 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-14 18:47:52 +0000 |
| commit | c6a826bf663d3cb286025642f5e2a725b5d1c660 (patch) | |
| tree | e5432da217ec7d86122a67d2e632576bc87c5a9a | |
| parent | 3312a209d7882a32253d715ee24bcaa717af75c2 (diff) | |
fix case where the window group deletes itself. somehow missed this while syncing! :(
| -rw-r--r-- | src/Window.cc | 9 |
1 files changed, 6 insertions, 3 deletions
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; |
