From 013b07900b84c5fed69cc38ed93033c3888190b7 Mon Sep 17 00:00:00 2001 From: simonb Date: Thu, 8 Sep 2005 00:41:05 +0000 Subject: tweak last patch for titlebar scroll options --- src/Window.cc | 5 +++-- 1 file 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 @@ #include "WindowCmd.hh" #include "Remember.hh" #include "MenuCreator.hh" +#include "StringUtil.hh" #include "FbTk/I18n.hh" #include "FbTk/TextButton.hh" @@ -3859,10 +3860,10 @@ void FluxboxWindow::setupWindow() { if (screen().getScrollReverse()) reverse = 1; - if (StringUtil::strcasestr(screen().getScrollAction(), std::string("shade")) == 0) { + if (StringUtil::toLower(screen().getScrollAction()) == std::string("shade")) { frame().setOnClickTitlebar(shade_on_cmd, 5 - reverse); // shade on mouse roll frame().setOnClickTitlebar(shade_off_cmd, 4 + reverse); // unshade if rolled oposite direction - } else if (StringUtil::strcasestr(screen().getScrollAction(), std::string("nexttab")) == 0) { + } else if (StringUtil::toLower(screen().getScrollAction()) == std::string("nexttab")) { frame().setOnClickTitlebar(next_tab_cmd, 5 - reverse); // next tab frame().setOnClickTitlebar(prev_tab_cmd, 4 + reverse); // previous tab } -- cgit v0.11.2