all repos — fluxbox @ 461d4b7dbd9bc8c651eb3cf28ffe8708dca16c5e

custom fork of the fluxbox windowmanager

Fix crash: click the Remember-menu works again

This commit fixes a subtle regression introduced by myself in
f64727ca: WinClient wc = FbMenu::window()->winclient() creates a
copy and this copy gets cleaned up at the end of the scope. What
I really wanted was a reference.
Mathias Gumz akira@fluxbox.org
commit

461d4b7dbd9bc8c651eb3cf28ffe8708dca16c5e

parent

c207226a3211c3010c8cb40692da7409b635e763

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

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

@@ -310,7 +310,7 @@ // reconfigure only does stuff if the apps file has changed

Remember& r = Remember::instance(); r.checkReload(); if (FbMenu::window() != 0) { - WinClient wc = FbMenu::window()->winClient(); + WinClient& wc = FbMenu::window()->winClient(); if (isSelected()) { r.forgetAttrib(wc, m_attrib); } else {