diff options
author | markt <markt> | 2007-07-06 17:49:24 (GMT) |
---|---|---|
committer | markt <markt> | 2007-07-06 17:49:24 (GMT) |
commit | 27b8fe8270c5b7edcddc42134459500b00d47d4b (patch) | |
tree | 798b63b09a8887edc89c60bdd017a90bdfeda933 /src/Remember.cc | |
parent | d667fcc887fa997bed7c54f1ef24ac9a363d2ace (diff) | |
download | fluxbox-27b8fe8270c5b7edcddc42134459500b00d47d4b.zip fluxbox-27b8fe8270c5b7edcddc42134459500b00d47d4b.tar.bz2 |
prevent MPlayer from overriding the apps file, and use class name by default with remember menu
Diffstat (limited to 'src/Remember.cc')
-rw-r--r-- | src/Remember.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Remember.cc b/src/Remember.cc index c490e51..cfd0d61 100644 --- a/src/Remember.cc +++ b/src/Remember.cc | |||
@@ -319,15 +319,15 @@ Application * Remember::add(WinClient &winclient) { | |||
319 | Application *app = new Application(false); | 319 | Application *app = new Application(false); |
320 | 320 | ||
321 | // by default, we match against the WMClass of a window. | 321 | // by default, we match against the WMClass of a window. |
322 | string win_name = p->getProperty(ClientPattern::NAME, winclient); | 322 | string win_class = p->getProperty(ClientPattern::CLASS, winclient); |
323 | 323 | ||
324 | // replace special chars like ( ) and [ ] with \( \) and \[ \] | 324 | // replace special chars like ( ) and [ ] with \( \) and \[ \] |
325 | win_name = FbTk::StringUtil::replaceString(win_name, "(", "\\("); | 325 | win_class = FbTk::StringUtil::replaceString(win_class, "(", "\\("); |
326 | win_name = FbTk::StringUtil::replaceString(win_name, ")", "\\)"); | 326 | win_class = FbTk::StringUtil::replaceString(win_class, ")", "\\)"); |
327 | win_name = FbTk::StringUtil::replaceString(win_name, "[", "\\["); | 327 | win_class = FbTk::StringUtil::replaceString(win_class, "[", "\\["); |
328 | win_name = FbTk::StringUtil::replaceString(win_name, "]", "\\]"); | 328 | win_class = FbTk::StringUtil::replaceString(win_class, "]", "\\]"); |
329 | 329 | ||
330 | p->addTerm(win_name, ClientPattern::NAME); | 330 | p->addTerm(win_class, ClientPattern::CLASS); |
331 | m_clients[&winclient] = app; | 331 | m_clients[&winclient] = app; |
332 | p->addMatch(); | 332 | p->addMatch(); |
333 | m_pats->push_back(make_pair(p, app)); | 333 | m_pats->push_back(make_pair(p, app)); |