aboutsummaryrefslogtreecommitdiff
path: root/src/ClientPattern.hh
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/ClientPattern.hh
parent74eb584a312aba21b21eccb6c49ade1571aa3740 (diff)
downloadfluxbox-f3afe787c1209cf1357493924a4f7eb7864def54.zip
fluxbox-f3afe787c1209cf1357493924a4f7eb7864def54.tar.bz2
introduced workspacename for ClientPattern, and some miscellaneous cleanup
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 /**