diff options
author | simonb <simonb> | 2006-04-23 14:51:04 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-04-23 14:51:04 (GMT) |
commit | 53f869aa528c6fee86d382ff4cfe6dc1046093c7 (patch) | |
tree | d6713a1a23193cc47392147f3e0611db9960bee4 /src/ClientPattern.cc | |
parent | 39cacd1da802e4aa2cd4fdeacf0cf2b436d87dfa (diff) | |
download | fluxbox-53f869aa528c6fee86d382ff4cfe6dc1046093c7.zip fluxbox-53f869aa528c6fee86d382ff4cfe6dc1046093c7.tar.bz2 |
reload the apps file on flux reload
Diffstat (limited to 'src/ClientPattern.cc')
-rw-r--r-- | src/ClientPattern.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ClientPattern.cc b/src/ClientPattern.cc index 38d1602..d9469fa 100644 --- a/src/ClientPattern.cc +++ b/src/ClientPattern.cc | |||
@@ -257,3 +257,19 @@ std::string ClientPattern::getProperty(WinProperty prop, const WinClient &client | |||
257 | } | 257 | } |
258 | return client.getWMClassName(); | 258 | return client.getWMClassName(); |
259 | } | 259 | } |
260 | |||
261 | bool ClientPattern::equals(const ClientPattern &pat) const { | ||
262 | // we require the terms to be identical (order too) | ||
263 | Terms::const_iterator it = m_terms.begin(); | ||
264 | Terms::const_iterator it_end = m_terms.end(); | ||
265 | Terms::const_iterator other_it = pat.m_terms.begin(); | ||
266 | Terms::const_iterator other_it_end = pat.m_terms.end(); | ||
267 | for (; it != it_end, other_it != other_it_end; ++it, ++other_it) { | ||
268 | if ((*it)->orig != (*other_it)->orig) | ||
269 | return false; | ||
270 | } | ||
271 | if (it != it_end || other_it != other_it_end) | ||
272 | return false; | ||
273 | |||
274 | return true; | ||
275 | } | ||