From 507fbd3be7561055f8f80177d4d6c8fbaea7e976 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 12 Apr 2002 15:14:09 +0000 Subject: added workspace warping option --- src/Configmenu.cc | 16 ++++++++++++++-- 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Configmenu.cc,v 1.12 2002/04/04 11:28:19 fluxgen Exp $ +// $Id: Configmenu.cc,v 1.13 2002/04/12 15:14:09 fluxgen Exp $ // stupid macros needed to access some functions in version 2 of the GNU C // library @@ -39,7 +39,8 @@ #include "Toolbar.hh" #include "Window.hh" -enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, CMENU_TAB_ROTATE=21}; +enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, + CMENU_WORKSPACE_WARPING, CMENU_TAB_ROTATE=21}; Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { @@ -93,6 +94,9 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { insert(i18n->getMessage( ConfigmenuSet, ConfigmenuSloppyWindowGrouping, "Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP); + insert(i18n->getMessage( + ConfigmenuSet, ConfigmenuWorkspaceWarping, + "Workspace Warping"), CMENU_WORKSPACE_WARPING); update(); setItemSelected(8, screen->doMaxOverSlit()); @@ -105,6 +109,7 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { setItemSelected(CMENU_USE_TABS, Fluxbox::instance()->useTabs()); setItemSelected(CMENU_USE_ICONS, Fluxbox::instance()->useIconBar()); setItemSelected(CMENU_SLOPPY_WIN_GROUP, screen->isSloppyWindowGrouping()); + setItemSelected(CMENU_WORKSPACE_WARPING, screen->isWorkspaceWarping()); } @@ -181,6 +186,13 @@ void Configmenu::itemSelected(int button, unsigned int index) { screen->reconfigure(); } break; + case CMENU_WORKSPACE_WARPING: + { + screen->saveWorkspaceWarping(!screen->isWorkspaceWarping()); + setItemSelected(index, screen->isWorkspaceWarping()); + screen->reconfigure(); + } + break; } } -- cgit v0.11.2