From b265d0d8703cf38e526bc60229cd51eabab27f0f Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Fri, 3 Oct 2008 23:09:11 -0700 Subject: fix CustomMenu and ClientMenu commands from fluxbox-remote --- ChangeLog | 2 ++ src/Screen.cc | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0214d31..72c45f3 100644 --- a/ChangeLog +++ b/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) diff --git a/src/Screen.cc b/src/Screen.cc index 49b631d..96ede24 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -841,7 +841,8 @@ void BScreen::propertyNotify(Atom atom) { &ret_bytes_after, (unsigned char **)&str); } - FbTk::RefCount > cmd(FbTk::CommandParser::instance().parse(str, false)); + static std::auto_ptr > cmd(0); + cmd.reset(FbTk::CommandParser::instance().parse(str, false)); if (cmd.get()) cmd->execute(); XFree(str); -- cgit v0.11.2