diff options
author | simonb <simonb> | 2006-04-16 12:03:31 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-04-16 12:03:31 (GMT) |
commit | 29f975b302c1cc4ab758871811894dfe572a4f24 (patch) | |
tree | 3d8b4cfb07813b6846b0269f47b4d2e9d5727e16 /src/Toolbar.cc | |
parent | 67b8277af0856320a8fc0be1515f01ba40456e45 (diff) | |
download | fluxbox-29f975b302c1cc4ab758871811894dfe572a4f24.zip fluxbox-29f975b302c1cc4ab758871811894dfe572a4f24.tar.bz2 |
add reversewheeling option
thanks Kalle - ice_jkpg at users.sourceforge.net
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 19 |
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 | ||
526 | void Toolbar::buttonReleaseEvent(XButtonEvent &re) { | 526 | void 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 | ||
535 | void Toolbar::enterNotifyEvent(XCrossingEvent ¬_used) { | 544 | void Toolbar::enterNotifyEvent(XCrossingEvent ¬_used) { |