diff options
Diffstat (limited to 'src/Remember.cc')
-rw-r--r-- | src/Remember.cc | 7 |
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; |