all repos — fluxbox @ 024d181abb16b896e53a5eb2ea094998e39e57a5

custom fork of the fluxbox windowmanager

comment
fluxgen fluxgen
commit

024d181abb16b896e53a5eb2ea094998e39e57a5

parent

4f6e9bc87ea91413e561633fd25226aeb3ea13ad

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

jump to
M src/Rootmenu.ccsrc/Rootmenu.cc

@@ -132,9 +132,10 @@ if (w)

auto_group_window = 0; // clear it immediately // If not set check the parent and the parent's parent, ... else { - Rootmenu* parent = dynamic_cast<Rootmenu*>(GetParent()); - if (parent) - w = parent->useAutoGroupWindow(); + // TODO: dynamic_cast throws std::bad_cast! + Rootmenu *p = dynamic_cast<Rootmenu*>(parent()); + if (p) + w = p->useAutoGroupWindow(); } return w; }