summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Ramsay <jim.ramsay@motorola.com>2010-01-17 03:16:05 (GMT)
committerJim Ramsay <jim.ramsay@motorola.com>2010-01-17 03:16:05 (GMT)
commit0935a8d5564e1aee5fd0f7dd5d21f3fc69d15562 (patch)
tree98bc53d0f6d09215747f5f3cc6326e8c42ba3657
parent6ceb786df329045b49dc4f2a8e7ba76b772746a9 (diff)
downloadfluxbox_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.
-rw-r--r--src/ClientMenu.cc6
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