aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonb <simonb>2005-09-08 00:41:05 (GMT)
committersimonb <simonb>2005-09-08 00:41:05 (GMT)
commit013b07900b84c5fed69cc38ed93033c3888190b7 (patch)
tree8dfc16929a30b5fa7df03ba893b6c4eb2afb4c5b
parentb01cd5a2c037b5eaa108424853a669df0d061f0d (diff)
downloadfluxbox_paul-013b07900b84c5fed69cc38ed93033c3888190b7.zip
fluxbox_paul-013b07900b84c5fed69cc38ed93033c3888190b7.tar.bz2
tweak last patch for titlebar scroll options
-rw-r--r--src/Window.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 12f40fb..35794ef 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -39,6 +39,7 @@
39#include "WindowCmd.hh" 39#include "WindowCmd.hh"
40#include "Remember.hh" 40#include "Remember.hh"
41#include "MenuCreator.hh" 41#include "MenuCreator.hh"
42#include "StringUtil.hh"
42 43
43#include "FbTk/I18n.hh" 44#include "FbTk/I18n.hh"
44#include "FbTk/TextButton.hh" 45#include "FbTk/TextButton.hh"
@@ -3859,10 +3860,10 @@ void FluxboxWindow::setupWindow() {
3859 if (screen().getScrollReverse()) 3860 if (screen().getScrollReverse())
3860 reverse = 1; 3861 reverse = 1;
3861 3862
3862 if (StringUtil::strcasestr(screen().getScrollAction(), std::string("shade")) == 0) { 3863 if (StringUtil::toLower(screen().getScrollAction()) == std::string("shade")) {
3863 frame().setOnClickTitlebar(shade_on_cmd, 5 - reverse); // shade on mouse roll 3864 frame().setOnClickTitlebar(shade_on_cmd, 5 - reverse); // shade on mouse roll
3864 frame().setOnClickTitlebar(shade_off_cmd, 4 + reverse); // unshade if rolled oposite direction 3865 frame().setOnClickTitlebar(shade_off_cmd, 4 + reverse); // unshade if rolled oposite direction
3865 } else if (StringUtil::strcasestr(screen().getScrollAction(), std::string("nexttab")) == 0) { 3866 } else if (StringUtil::toLower(screen().getScrollAction()) == std::string("nexttab")) {
3866 frame().setOnClickTitlebar(next_tab_cmd, 5 - reverse); // next tab 3867 frame().setOnClickTitlebar(next_tab_cmd, 5 - reverse); // next tab
3867 frame().setOnClickTitlebar(prev_tab_cmd, 4 + reverse); // previous tab 3868 frame().setOnClickTitlebar(prev_tab_cmd, 4 + reverse); // previous tab
3868 } 3869 }