From 0935a8d5564e1aee5fd0f7dd5d21f3fc69d15562 Mon Sep 17 00:00:00 2001 From: Jim Ramsay Date: Sat, 16 Jan 2010 22:16:05 -0500 Subject: Set Attention state for currently highlighted ClientMenu item This isn't super visually-interesting, but it's more than the alternative. --- src/ClientMenu.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ClientMenu.cc b/src/ClientMenu.cc index 71f322c..2ee7e51 100644 --- a/src/ClientMenu.cc +++ b/src/ClientMenu.cc @@ -70,6 +70,12 @@ public: return (&(m_client.fbwindow()->winClient()) == &m_client); } + void setActive(bool active) { + FbTk::MenuItem::setActive(active); + // When this MenuItem goes active, pretend to focus the window + m_client.setAttentionState(active); + } + // for updating menu when receiving a signal from client Focusable *client() { return &m_client; } -- cgit v0.11.2