From c6a826bf663d3cb286025642f5e2a725b5d1c660 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 14 Jul 2002 18:47:52 +0000 Subject: [PATCH] fix case where the window group deletes itself. somehow missed this while syncing! :( --- src/Window.cc | 9 ++++++--- 1 file 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; -- 2.45.2