all repos — openbox @ c6a826bf663d3cb286025642f5e2a725b5d1c660

openbox fork - make it a bit more like ryudo

fix case where the window group deletes itself. somehow missed this while syncing! :(
Dana Jansens danakj@orodu.net
commit

c6a826bf663d3cb286025642f5e2a725b5d1c660

parent

3312a209d7882a32253d715ee24bcaa717af75c2

1 files changed, 6 insertions(+), 3 deletions(-)

jump to
M src/Window.ccsrc/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;