all repos — fluxbox @ 507fbd3be7561055f8f80177d4d6c8fbaea7e976

custom fork of the fluxbox windowmanager

added workspace warping option
fluxgen fluxgen
commit

507fbd3be7561055f8f80177d4d6c8fbaea7e976

parent

7669a04b24216b0635672ccebb8aafb1c293e0cd

1 files changed, 14 insertions(+), 2 deletions(-)

jump to
M src/Configmenu.ccsrc/Configmenu.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 "Configmenu.hh"

#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 @@ "Use Icons"), CMENU_USE_ICONS);

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 @@ setItemSelected(7, screen->doFocusLast());

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()); }

@@ -178,6 +183,13 @@ case CMENU_SLOPPY_WIN_GROUP:

{ screen->saveSloppyWindowGrouping(!screen->isSloppyWindowGrouping()); setItemSelected(index, screen->isSloppyWindowGrouping()); + screen->reconfigure(); + } + break; + case CMENU_WORKSPACE_WARPING: + { + screen->saveWorkspaceWarping(!screen->isWorkspaceWarping()); + setItemSelected(index, screen->isWorkspaceWarping()); screen->reconfigure(); } break;