aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Configmenu.cc21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/Configmenu.cc b/src/Configmenu.cc
index 4eba0d6..edb527a 100644
--- a/src/Configmenu.cc
+++ b/src/Configmenu.cc
@@ -34,10 +34,8 @@
34#include "Toolbar.hh" 34#include "Toolbar.hh"
35#include "Window.hh" 35#include "Window.hh"
36 36
37#define CMENU_USE_TABS 8 37enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, CMENU_TAB_ROTATE=21};
38#define CMENU_USE_ICONS 9 38
39#define CMENU_SLOPPY_WIN_GROUP 10
40#define CMENU_TAB_ROTATE 21
41 39
42Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { 40Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) {
43 screen = scr; 41 screen = scr;
@@ -114,6 +112,14 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) {
114 0, 0, 112 0, 0,
115#endif // NLS 113#endif // NLS
116 "Focus Last Window on Workspace"), 5); 114 "Focus Last Window on Workspace"), 5);
115 insert(i18n->getMessage(
116#ifdef NLS
117 ConfigmenuSet, ConfigmenuMaxOverSlit,
118#else // !NLS
119 0, 0,
120#endif // NLS
121 "Maxmize Over Slit"), 6);
122
117 123
118 insert(i18n->getMessage( 124 insert(i18n->getMessage(
119#ifdef NLS 125#ifdef NLS
@@ -138,6 +144,7 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) {
138 "Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP); 144 "Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP);
139 145
140 update(); 146 update();
147 setItemSelected(8, screen->doMaxOverSlit());
141 148
142 setItemSelected(3, screen->getImageControl()->doDither()); 149 setItemSelected(3, screen->getImageControl()->doDither());
143 setItemSelected(4, screen->doOpaqueMove()); 150 setItemSelected(4, screen->doOpaqueMove());
@@ -187,6 +194,12 @@ void Configmenu::itemSelected(int button, int index) {
187 case 4: // focus new windows 194 case 4: // focus new windows
188 screen->saveFocusNew((! screen->doFocusNew())); 195 screen->saveFocusNew((! screen->doFocusNew()));
189 196
197
198 case 6: // maximize over slit
199 screen->saveMaxOverSlit((! screen->doMaxOverSlit()));
200 setItemSelected(index, screen->doMaxOverSlit());
201 break;
202
190 setItemSelected(index, screen->doFocusNew()); 203 setItemSelected(index, screen->doFocusNew());
191 break; 204 break;
192 205