aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-10-24 17:09:26 (GMT)
committermarkt <markt>2007-10-24 17:09:26 (GMT)
commitf3afe787c1209cf1357493924a4f7eb7864def54 (patch)
treed0c0c3eca154ab538fbc1fb3c62081e9250c05bd /src/Remember.cc
parent74eb584a312aba21b21eccb6c49ade1571aa3740 (diff)
downloadfluxbox-f3afe787c1209cf1357493924a4f7eb7864def54.zip
fluxbox-f3afe787c1209cf1357493924a4f7eb7864def54.tar.bz2
introduced workspacename for ClientPattern, and some miscellaneous cleanup
Diffstat (limited to 'src/Remember.cc')
-rw-r--r--src/Remember.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Remember.cc b/src/Remember.cc
index 41f91c4..a415c70 100644
--- a/src/Remember.cc
+++ b/src/Remember.cc
@@ -551,12 +551,13 @@ Application *Remember::findMatchingPatterns(ClientPattern *pat, Patterns *patlis
551 Patterns::iterator it = patlist->begin(); 551 Patterns::iterator it = patlist->begin();
552 Patterns::iterator it_end = patlist->end(); 552 Patterns::iterator it_end = patlist->end();
553 for (; it != it_end; ++it) { 553 for (; it != it_end; ++it) {
554 if (it->first->equals(*pat) && is_group == it->second->is_grouped && 554 if (*it->first == *pat && is_group == it->second->is_grouped &&
555 ((match_pat == 0 && *it->second->group_pattern == 0) || 555 ((match_pat == 0 && *it->second->group_pattern == 0) ||
556 (match_pat && match_pat->equals(**it->second->group_pattern)))) { 556 (match_pat && *match_pat == **it->second->group_pattern))) {
557 Application *ret = it->second; 557 Application *ret = it->second;
558 558
559 // find any previous or subsequent matching ones and delete 559 if (!is_group) return ret;
560 // find the rest of the group and remove it from the list
560 561
561 // rewind 562 // rewind
562 Patterns::iterator tmpit = it; 563 Patterns::iterator tmpit = it;