aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-18 05:44:17 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-18 05:44:17 (GMT)
commitc01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0 (patch)
tree7e25c017727402a33fd8e4c851b5bab9e6add568 /src/Screen.cc
parent31df2d8bd618cae590d9b0e76aee11021d4c77d3 (diff)
downloadfluxbox-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.zip
fluxbox-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.tar.bz2
holding control will now keep the menu open
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index a74ba0e..f26a0e6 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -181,12 +181,14 @@ public:
181 FbTk::RefCount<FbTk::Command> &cmd): 181 FbTk::RefCount<FbTk::Command> &cmd):
182 FbTk::MenuItem(label, cmd), 182 FbTk::MenuItem(label, cmd),
183 m_screen(screen), 183 m_screen(screen),
184 m_place(place) { } 184 m_place(place) {
185 setCloseOnClick(false);
186 }
185 187
186 bool isEnabled() const { return m_screen.getTabPlacement() != m_place; } 188 bool isEnabled() const { return m_screen.getTabPlacement() != m_place; }
187 void click(int button, int time) { 189 void click(int button, int time, unsigned int mods) {
188 m_screen.saveTabPlacement(m_place); 190 m_screen.saveTabPlacement(m_place);
189 FbTk::MenuItem::click(button, time); 191 FbTk::MenuItem::click(button, time, mods);
190 } 192 }
191 193
192 194