aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.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/Remember.cc
parent31df2d8bd618cae590d9b0e76aee11021d4c77d3 (diff)
downloadfluxbox-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.zip
fluxbox-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.tar.bz2
holding control will now keep the menu open
Diffstat (limited to 'src/Remember.cc')
-rw-r--r--src/Remember.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Remember.cc b/src/Remember.cc
index 827b1e3..2090008 100644
--- a/src/Remember.cc
+++ b/src/Remember.cc
@@ -99,6 +99,7 @@ public:
99 FbTk::MenuItem(label), 99 FbTk::MenuItem(label),
100 m_attrib(attrib) { 100 m_attrib(attrib) {
101 setToggleItem(true); 101 setToggleItem(true);
102 setCloseOnClick(false);
102 } 103 }
103 104
104 bool isSelected() const { 105 bool isSelected() const {
@@ -123,7 +124,7 @@ public:
123 return false; 124 return false;
124 } 125 }
125 126
126 void click(int button, int time) { 127 void click(int button, int time, unsigned int mods) {
127 // reconfigure only does stuff if the apps file has changed 128 // reconfigure only does stuff if the apps file has changed
128 Remember::instance().reconfigure(); 129 Remember::instance().reconfigure();
129 if (WindowCmd<void>::window() != 0) { 130 if (WindowCmd<void>::window() != 0) {
@@ -134,7 +135,7 @@ public:
134 } 135 }
135 } 136 }
136 Remember::instance().save(); 137 Remember::instance().save();
137 FbTk::MenuItem::click(button, time); 138 FbTk::MenuItem::click(button, time, mods);
138 } 139 }
139 140
140private: 141private: