aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Bollerhey <gbsoftware@arcor.de>2014-01-12 03:43:07 (GMT)
committerJan Sucan <jan@jansucan.com>2020-04-05 07:57:59 (GMT)
commitd07ee244d3ee419a5bc35698e67abd07f746f808 (patch)
treef5a3c9ded7a515b148ca54e296206104de987ab3
parent89dec4ff159933b93b187bb422f3926b00300963 (diff)
downloadfluxbox-d07ee244d3ee419a5bc35698e67abd07f746f808.zip
fluxbox-d07ee244d3ee419a5bc35698e67abd07f746f808.tar.bz2
Ignore case when matching window classnames.
-rw-r--r--src/SystemTray.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/SystemTray.cc b/src/SystemTray.cc
index ddc3738..fb141d4 100644
--- a/src/SystemTray.cc
+++ b/src/SystemTray.cc
@@ -149,6 +149,7 @@ void TrayWindow::pinByClassname(const std::vector<std::string> left,
149 this->window(), xclasshint.get())) 149 this->window(), xclasshint.get()))
150 { 150 {
151 std::string classname(xclasshint.get()->res_class); 151 std::string classname(xclasshint.get()->res_class);
152 classname = FbTk::StringUtil::toLower(classname);
152 153
153 auto ix = std::find(left.begin(), left.end(), classname); 154 auto ix = std::find(left.begin(), left.end(), classname);
154 if (ix != left.end()) 155 if (ix != left.end())
@@ -235,8 +236,10 @@ SystemTray::SystemTray(const FbTk::FbWindow& parent,
235 "", screen.name() + ".systray.pinRight", 236 "", screen.name() + ".systray.pinRight",
236 screen.altName() + ".Systray.PinRight") { 237 screen.altName() + ".Systray.PinRight") {
237 238
238 FbTk::StringUtil::stringtok(m_pinleft, m_rc_systray_pinleft, " ,"); 239 FbTk::StringUtil::stringtok(m_pinleft,
239 FbTk::StringUtil::stringtok(m_pinright, m_rc_systray_pinright, " ,"); 240 FbTk::StringUtil::toLower(m_rc_systray_pinleft), " ,");
241 FbTk::StringUtil::stringtok(m_pinright,
242 FbTk::StringUtil::toLower(m_rc_systray_pinright), " ,");
240 243
241 FbTk::EventManager::instance()->add(*this, m_window); 244 FbTk::EventManager::instance()->add(*this, m_window);
242 FbTk::EventManager::instance()->add(*this, m_selection_owner); 245 FbTk::EventManager::instance()->add(*this, m_selection_owner);