From d07ee244d3ee419a5bc35698e67abd07f746f808 Mon Sep 17 00:00:00 2001 From: Gregor Bollerhey Date: Sun, 12 Jan 2014 04:43:07 +0100 Subject: Ignore case when matching window classnames. --- src/SystemTray.cc | 7 +++++-- 1 file 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 left, this->window(), xclasshint.get())) { std::string classname(xclasshint.get()->res_class); + classname = FbTk::StringUtil::toLower(classname); auto ix = std::find(left.begin(), left.end(), classname); if (ix != left.end()) @@ -235,8 +236,10 @@ SystemTray::SystemTray(const FbTk::FbWindow& parent, "", screen.name() + ".systray.pinRight", screen.altName() + ".Systray.PinRight") { - FbTk::StringUtil::stringtok(m_pinleft, m_rc_systray_pinleft, " ,"); - FbTk::StringUtil::stringtok(m_pinright, m_rc_systray_pinright, " ,"); + FbTk::StringUtil::stringtok(m_pinleft, + FbTk::StringUtil::toLower(m_rc_systray_pinleft), " ,"); + FbTk::StringUtil::stringtok(m_pinright, + FbTk::StringUtil::toLower(m_rc_systray_pinright), " ,"); FbTk::EventManager::instance()->add(*this, m_window); FbTk::EventManager::instance()->add(*this, m_selection_owner); -- cgit v0.11.2