fix case where the window group deletes itself. somehow missed this while syncing! :(
Dana Jansens danakj@orodu.net
1 files changed,
6 insertions(+),
3 deletions(-)
jump to
M
src/Window.cc
→
src/Window.cc
@@ -1094,9 +1094,12 @@ client.window_group = wmhint->window_group;
// 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;