summaryrefslogtreecommitdiff
path: root/src/ClientPattern.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientPattern.hh')
-rw-r--r--src/ClientPattern.hh10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/ClientPattern.hh b/src/ClientPattern.hh
index 4e9f1ac..a6d1ede 100644
--- a/src/ClientPattern.hh
+++ b/src/ClientPattern.hh
@@ -56,7 +56,7 @@ public:
56 enum WinProperty { 56 enum WinProperty {
57 TITLE, CLASS, NAME, ROLE, TRANSIENT, 57 TITLE, CLASS, NAME, ROLE, TRANSIENT,
58 MAXIMIZED, MINIMIZED, SHADED, STUCK, FOCUSHIDDEN, ICONHIDDEN, 58 MAXIMIZED, MINIMIZED, SHADED, STUCK, FOCUSHIDDEN, ICONHIDDEN,
59 WORKSPACE, HEAD, LAYER 59 WORKSPACE, WORKSPACENAME, HEAD, LAYER
60 }; 60 };
61 61
62 /// Does this client match this pattern? 62 /// Does this client match this pattern?
@@ -72,12 +72,8 @@ public:
72 72
73 inline void addMatch() { ++m_nummatches; } 73 inline void addMatch() { ++m_nummatches; }
74 74
75 inline bool operator == (const Focusable &win) const {
76 return match(win);
77 }
78
79 // whether this pattern has identical matching criteria 75 // whether this pattern has identical matching criteria
80 bool equals(const ClientPattern &pat) const; 76 bool operator ==(const ClientPattern &pat) const;
81 77
82 /** 78 /**
83 * If there are no terms, then there is assumed to be an error 79 * If there are no terms, then there is assumed to be an error
@@ -85,7 +81,7 @@ public:
85 */ 81 */
86 inline int error() const { return m_terms.empty() ? 1 : 0; } 82 inline int error() const { return m_terms.empty() ? 1 : 0; }
87 83
88 std::string getProperty(WinProperty prop, const Focusable &winclient) const; 84 static std::string getProperty(WinProperty prop, const Focusable &client);
89 85
90private: 86private:
91 /** 87 /**