aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-16 12:03:31 (GMT)
committersimonb <simonb>2006-04-16 12:03:31 (GMT)
commit29f975b302c1cc4ab758871811894dfe572a4f24 (patch)
tree3d8b4cfb07813b6846b0269f47b4d2e9d5727e16 /src/fluxbox.cc
parent67b8277af0856320a8fc0be1515f01ba40456e45 (diff)
downloadfluxbox_pavel-29f975b302c1cc4ab758871811894dfe572a4f24.zip
fluxbox_pavel-29f975b302c1cc4ab758871811894dfe572a4f24.tar.bz2
add reversewheeling option
thanks Kalle - ice_jkpg at users.sourceforge.net
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 5fcd4fe..62eef50 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -940,9 +940,17 @@ void Fluxbox::handleButtonEvent(XButtonEvent &be) {
940 FbCommands::ShowRootMenuCmd cmd; 940 FbCommands::ShowRootMenuCmd cmd;
941 cmd.execute(); 941 cmd.execute();
942 } else if (screen->isDesktopWheeling() && be.button == 4) { 942 } else if (screen->isDesktopWheeling() && be.button == 4) {
943 screen->nextWorkspace(1); 943 if(screen->isReverseWheeling()) {
944 screen->prevWorkspace(1);
945 } else {
946 screen->nextWorkspace(1);
947 }
944 } else if (screen->isDesktopWheeling() && be.button == 5) { 948 } else if (screen->isDesktopWheeling() && be.button == 5) {
945 screen->prevWorkspace(1); 949 if(screen->isReverseWheeling()) {
950 screen->nextWorkspace(1);
951 } else {
952 screen->prevWorkspace(1);
953 }
946 } 954 }
947 955
948 } break; 956 } break;