diff options
-rw-r--r-- | src/Configmenu.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/Configmenu.cc b/src/Configmenu.cc index 4f24df4..728b82b 100644 --- a/src/Configmenu.cc +++ b/src/Configmenu.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Configmenu.cc,v 1.12 2002/04/04 11:28:19 fluxgen Exp $ | 25 | // $Id: Configmenu.cc,v 1.13 2002/04/12 15:14:09 fluxgen Exp $ |
26 | 26 | ||
27 | // stupid macros needed to access some functions in version 2 of the GNU C | 27 | // stupid macros needed to access some functions in version 2 of the GNU C |
28 | // library | 28 | // library |
@@ -39,7 +39,8 @@ | |||
39 | #include "Toolbar.hh" | 39 | #include "Toolbar.hh" |
40 | #include "Window.hh" | 40 | #include "Window.hh" |
41 | 41 | ||
42 | enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, CMENU_TAB_ROTATE=21}; | 42 | enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, |
43 | CMENU_WORKSPACE_WARPING, CMENU_TAB_ROTATE=21}; | ||
43 | 44 | ||
44 | 45 | ||
45 | Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | 46 | Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { |
@@ -93,6 +94,9 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | |||
93 | insert(i18n->getMessage( | 94 | insert(i18n->getMessage( |
94 | ConfigmenuSet, ConfigmenuSloppyWindowGrouping, | 95 | ConfigmenuSet, ConfigmenuSloppyWindowGrouping, |
95 | "Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP); | 96 | "Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP); |
97 | insert(i18n->getMessage( | ||
98 | ConfigmenuSet, ConfigmenuWorkspaceWarping, | ||
99 | "Workspace Warping"), CMENU_WORKSPACE_WARPING); | ||
96 | 100 | ||
97 | update(); | 101 | update(); |
98 | setItemSelected(8, screen->doMaxOverSlit()); | 102 | setItemSelected(8, screen->doMaxOverSlit()); |
@@ -105,6 +109,7 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | |||
105 | setItemSelected(CMENU_USE_TABS, Fluxbox::instance()->useTabs()); | 109 | setItemSelected(CMENU_USE_TABS, Fluxbox::instance()->useTabs()); |
106 | setItemSelected(CMENU_USE_ICONS, Fluxbox::instance()->useIconBar()); | 110 | setItemSelected(CMENU_USE_ICONS, Fluxbox::instance()->useIconBar()); |
107 | setItemSelected(CMENU_SLOPPY_WIN_GROUP, screen->isSloppyWindowGrouping()); | 111 | setItemSelected(CMENU_SLOPPY_WIN_GROUP, screen->isSloppyWindowGrouping()); |
112 | setItemSelected(CMENU_WORKSPACE_WARPING, screen->isWorkspaceWarping()); | ||
108 | } | 113 | } |
109 | 114 | ||
110 | 115 | ||
@@ -181,6 +186,13 @@ void Configmenu::itemSelected(int button, unsigned int index) { | |||
181 | screen->reconfigure(); | 186 | screen->reconfigure(); |
182 | } | 187 | } |
183 | break; | 188 | break; |
189 | case CMENU_WORKSPACE_WARPING: | ||
190 | { | ||
191 | screen->saveWorkspaceWarping(!screen->isWorkspaceWarping()); | ||
192 | setItemSelected(index, screen->isWorkspaceWarping()); | ||
193 | screen->reconfigure(); | ||
194 | } | ||
195 | break; | ||
184 | 196 | ||
185 | } | 197 | } |
186 | } | 198 | } |