aboutsummaryrefslogtreecommitdiff
path: root/src/ClientPattern.hh
diff options
context:
space:
mode:
authormarkt <markt>2007-10-23 17:30:49 (GMT)
committermarkt <markt>2007-10-23 17:30:49 (GMT)
commitc849d3c7ffc518d85a365664530f1faa102cf83f (patch)
tree35e368ed94401e93e5a4e0755b7970cc7658ca7c /src/ClientPattern.hh
parentc2badda58a53ed00f8a53e9ce162d52669296741 (diff)
downloadfluxbox_pavel-c849d3c7ffc518d85a365664530f1faa102cf83f.zip
fluxbox_pavel-c849d3c7ffc518d85a365664530f1faa102cf83f.tar.bz2
allow negated patterns
Diffstat (limited to 'src/ClientPattern.hh')
-rw-r--r--src/ClientPattern.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ClientPattern.hh b/src/ClientPattern.hh
index e5f4944..4e9f1ac 100644
--- a/src/ClientPattern.hh
+++ b/src/ClientPattern.hh
@@ -68,7 +68,7 @@ public:
68 * @param prop is the member function that we wish to match against 68 * @param prop is the member function that we wish to match against
69 * @return false if the regexp wasn't valid 69 * @return false if the regexp wasn't valid
70 */ 70 */
71 bool addTerm(const std::string &str, WinProperty prop); 71 bool addTerm(const std::string &str, WinProperty prop, bool negate = false);
72 72
73 inline void addMatch() { ++m_nummatches; } 73 inline void addMatch() { ++m_nummatches; }
74 74
@@ -99,6 +99,7 @@ private:
99 std::string orig; 99 std::string orig;
100 RegExp regexp; 100 RegExp regexp;
101 WinProperty prop; 101 WinProperty prop;
102 bool negate;
102 }; 103 };
103 104
104 105