diff options
author | Jim Ramsay <jim.ramsay@motorola.com> | 2010-01-17 03:16:05 (GMT) |
---|---|---|
committer | Jim Ramsay <jim.ramsay@motorola.com> | 2010-01-17 03:16:05 (GMT) |
commit | 0935a8d5564e1aee5fd0f7dd5d21f3fc69d15562 (patch) | |
tree | 98bc53d0f6d09215747f5f3cc6326e8c42ba3657 /src | |
parent | 6ceb786df329045b49dc4f2a8e7ba76b772746a9 (diff) | |
download | fluxbox_lack-0935a8d5564e1aee5fd0f7dd5d21f3fc69d15562.zip fluxbox_lack-0935a8d5564e1aee5fd0f7dd5d21f3fc69d15562.tar.bz2 |
Set Attention state for currently highlighted ClientMenu item
This isn't super visually-interesting, but it's more than the alternative.
Diffstat (limited to 'src')
-rw-r--r-- | src/ClientMenu.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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: | |||
70 | return (&(m_client.fbwindow()->winClient()) == &m_client); | 70 | return (&(m_client.fbwindow()->winClient()) == &m_client); |
71 | } | 71 | } |
72 | 72 | ||
73 | void setActive(bool active) { | ||
74 | FbTk::MenuItem::setActive(active); | ||
75 | // When this MenuItem goes active, pretend to focus the window | ||
76 | m_client.setAttentionState(active); | ||
77 | } | ||
78 | |||
73 | // for updating menu when receiving a signal from client | 79 | // for updating menu when receiving a signal from client |
74 | Focusable *client() { return &m_client; } | 80 | Focusable *client() { return &m_client; } |
75 | 81 | ||