all repos — fluxbox @ 930991589c903dc1a323c1ebcb67533107cd9f2d

custom fork of the fluxbox windowmanager

Desktop wheeling option added
fluxgen fluxgen
commit

930991589c903dc1a323c1ebcb67533107cd9f2d

parent

8ccfea478c63b48f9475e3b1816b8c3b904a50ef

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

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

@@ -16,13 +16,13 @@ // all copies or substantial portions of the Software.

// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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.14 2002/04/28 16:00:27 fluxgen Exp $ +// $Id: Configmenu.cc,v 1.15 2002/05/08 14:19:12 fluxgen Exp $ // stupid macros needed to access some functions in version 2 of the GNU C // library

@@ -40,7 +40,7 @@ #include "Toolbar.hh"

#include "Window.hh" enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, - CMENU_WORKSPACE_WARPING, CMENU_TAB_ROTATE=21}; + CMENU_DESKTOP_WHEELING, CMENU_WORKSPACE_WARPING, CMENU_TAB_ROTATE=21}; Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) {

@@ -97,6 +97,9 @@ "Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP);

insert(i18n->getMessage( ConfigmenuSet, ConfigmenuWorkspaceWarping, "Workspace Warping"), CMENU_WORKSPACE_WARPING); + insert(i18n->getMessage( + ConfigmenuSet, ConfigmenuDesktopWheeling, + "Desktop MouseWheel Switching"), CMENU_DESKTOP_WHEELING); update(); setItemSelected(8, screen->doMaxOverSlit());

@@ -110,6 +113,7 @@ 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()); + setItemSelected(CMENU_DESKTOP_WHEELING, screen->isDesktopWheeling()); }

@@ -190,6 +194,13 @@ case CMENU_WORKSPACE_WARPING:

{ screen->saveWorkspaceWarping(!screen->isWorkspaceWarping()); setItemSelected(index, screen->isWorkspaceWarping()); + screen->reconfigure(); + } + break; + case CMENU_DESKTOP_WHEELING: + { + screen->saveDesktopWheeling(!screen->isDesktopWheeling()); + setItemSelected(index, screen->isDesktopWheeling()); screen->reconfigure(); } break;