aboutsummaryrefslogtreecommitdiff
path: root/src/Configmenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Configmenu.cc')
-rw-r--r--src/Configmenu.cc19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/Configmenu.cc b/src/Configmenu.cc
index 5eda254..4eba0d6 100644
--- a/src/Configmenu.cc
+++ b/src/Configmenu.cc
@@ -36,6 +36,7 @@
36 36
37#define CMENU_USE_TABS 8 37#define CMENU_USE_TABS 8
38#define CMENU_USE_ICONS 9 38#define CMENU_USE_ICONS 9
39#define CMENU_SLOPPY_WIN_GROUP 10
39#define CMENU_TAB_ROTATE 21 40#define CMENU_TAB_ROTATE 21
40 41
41Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { 42Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) {
@@ -128,8 +129,13 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) {
128 0, 0, 129 0, 0,
129#endif // NLS 130#endif // NLS
130 "Use Icons"), CMENU_USE_ICONS); 131 "Use Icons"), CMENU_USE_ICONS);
131 132 insert(i18n->getMessage(
132 133#ifdef NLS
134 ConfigmenuSet, ConfigmenuSloppyWindowGrouping,
135#else // !NLS
136 0, 0,
137#endif // NLS
138 "Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP);
133 139
134 update(); 140 update();
135 141
@@ -140,6 +146,7 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) {
140 setItemSelected(7, screen->doFocusLast()); 146 setItemSelected(7, screen->doFocusLast());
141 setItemSelected(CMENU_USE_TABS, Fluxbox::instance()->useTabs()); 147 setItemSelected(CMENU_USE_TABS, Fluxbox::instance()->useTabs());
142 setItemSelected(CMENU_USE_ICONS, Fluxbox::instance()->useIconBar()); 148 setItemSelected(CMENU_USE_ICONS, Fluxbox::instance()->useIconBar());
149 setItemSelected(CMENU_SLOPPY_WIN_GROUP, screen->isSloppyWindowGrouping());
143} 150}
144 151
145 152
@@ -203,6 +210,14 @@ void Configmenu::itemSelected(int button, int index) {
203 screen->reconfigure(); 210 screen->reconfigure();
204 } 211 }
205 break; 212 break;
213 case CMENU_SLOPPY_WIN_GROUP:
214 {
215 screen->saveSloppyWindowGrouping(!screen->isSloppyWindowGrouping());
216 setItemSelected(index, screen->isSloppyWindowGrouping());
217 screen->reconfigure();
218 }
219 break;
220
206 } 221 }
207 } 222 }
208} 223}