diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
commit | e169d33552c8e7070aa6e13da0187f2013b4cfc3 (patch) | |
tree | ae9e92c7e885791c7f47645184070cbcd441ab94 /src/ClientPattern.cc | |
parent | c82e7c0080f8a5c14dcf95ec92dc42f59ea9dd8b (diff) | |
parent | 91ca3bc5c8e2b892a9a81b18246f72aba7deebfd (diff) | |
download | fluxbox-e169d33552c8e7070aa6e13da0187f2013b4cfc3.zip fluxbox-e169d33552c8e7070aa6e13da0187f2013b4cfc3.tar.bz2 |
Merge branch 'master' into to_push
Diffstat (limited to 'src/ClientPattern.cc')
-rw-r--r-- | src/ClientPattern.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ClientPattern.cc b/src/ClientPattern.cc index d037bb4..c08a574 100644 --- a/src/ClientPattern.cc +++ b/src/ClientPattern.cc | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include "ClientPattern.hh" | 23 | #include "ClientPattern.hh" |
24 | 24 | ||
25 | #include "fluxbox.hh" | ||
25 | #include "FocusControl.hh" | 26 | #include "FocusControl.hh" |
26 | #include "Layer.hh" | 27 | #include "Layer.hh" |
27 | #include "Screen.hh" | 28 | #include "Screen.hh" |
@@ -132,6 +133,8 @@ ClientPattern::ClientPattern(const char *str, bool default_no_transient): | |||
132 | prop = HEAD; | 133 | prop = HEAD; |
133 | } else if (strcasecmp(memstr.c_str(), "layer") == 0) { | 134 | } else if (strcasecmp(memstr.c_str(), "layer") == 0) { |
134 | prop = LAYER; | 135 | prop = LAYER; |
136 | } else if (strcasecmp(memstr.c_str(), "urgent") == 0) { | ||
137 | prop = URGENT; | ||
135 | } else { | 138 | } else { |
136 | prop = NAME; | 139 | prop = NAME; |
137 | expr = match; | 140 | expr = match; |
@@ -244,6 +247,8 @@ string ClientPattern::toString() const { | |||
244 | case LAYER: | 247 | case LAYER: |
245 | pat.append("layer="); | 248 | pat.append("layer="); |
246 | break; | 249 | break; |
250 | case URGENT: | ||
251 | pat.append("urgent="); | ||
247 | } | 252 | } |
248 | 253 | ||
249 | pat.append((*it)->orig); | 254 | pat.append((*it)->orig); |
@@ -403,6 +408,10 @@ string ClientPattern::getProperty(WinProperty prop, const Focusable &client) { | |||
403 | case LAYER: | 408 | case LAYER: |
404 | return fbwin ? ::Layer::getString(fbwin->layerNum()) : ""; | 409 | return fbwin ? ::Layer::getString(fbwin->layerNum()) : ""; |
405 | break; | 410 | break; |
411 | case URGENT: | ||
412 | return Fluxbox::instance()->attentionHandler() | ||
413 | .isDemandingAttention(client) ? "yes" : "no"; | ||
414 | break; | ||
406 | } | 415 | } |
407 | return client.getWMClassName(); | 416 | return client.getWMClassName(); |
408 | } | 417 | } |