diff options
-rw-r--r-- | src/Window.cc | 5 |
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 | } |