fix CustomMenu and ClientMenu commands from fluxbox-remote
Mark Tiefenbruck mark@fluxbox.org
2 files changed,
4 insertions(+),
1 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -1,6 +1,8 @@
(Format: Year/Month/Day) Changes for 1.1.2 *08/10/04: + * Fix CustomMenu and ClientMenu commands from fluxbox-remote (Mark) + Screen.cc * Break emacs-style keychains after one invalid key has been pressed (Mark) Screen.cc Keys.cc/hh * Fix flickering of shaped windows, #2131548 and #2001027 (Mark)
M
src/Screen.cc
→
src/Screen.cc
@@ -841,7 +841,8 @@ True, XA_STRING, &xa_ret_type, &ret_format, &ret_nitems,
&ret_bytes_after, (unsigned char **)&str); } - FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(str, false)); + static std::auto_ptr<FbTk::Command<void> > cmd(0); + cmd.reset(FbTk::CommandParser<void>::instance().parse(str, false)); if (cmd.get()) cmd->execute(); XFree(str);