aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 319f56a..84a6afb 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -524,12 +524,21 @@ void Toolbar::buttonPressEvent(XButtonEvent &be) {
524 524
525 525
526void Toolbar::buttonReleaseEvent(XButtonEvent &re) { 526void Toolbar::buttonReleaseEvent(XButtonEvent &re) {
527 if (re.button == 1) 527 if (re.button == 1) {
528 raise(); 528 raise();
529 else if (re.button == 4) //mousewheel scroll up 529 } else if (re.button == 4) { //mousewheel scroll up
530 screen().nextWorkspace(1); 530 if(screen().isReverseWheeling()) {
531 else if (re.button == 5) //mousewheel scroll down 531 screen().prevWorkspace(1);
532 screen().prevWorkspace(1); 532 } else {
533 screen().nextWorkspace(1);
534 }
535 } else if (re.button == 5) { //mousewheel scroll down
536 if(screen().isReverseWheeling()) {
537 screen().nextWorkspace(1);
538 } else {
539 screen().prevWorkspace(1);
540 }
541 }
533} 542}
534 543
535void Toolbar::enterNotifyEvent(XCrossingEvent &not_used) { 544void Toolbar::enterNotifyEvent(XCrossingEvent &not_used) {