summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2014-02-06 20:58:46 +0000
committerokan <okan>2014-02-06 20:58:46 +0000
commit98d8483d358747ad006cb37a9f29fc96e10a8827 (patch)
treeeb5e22ce5e8402cc64152790c5c498b4b99e79a1
parentf793964c9ec586b9c4b4843c14bc83afaf275cb4 (diff)
downloadcwm-98d8483d358747ad006cb37a9f29fc96e10a8827.tar.gz
cwm-98d8483d358747ad006cb37a9f29fc96e10a8827.tar.xz
cwm-98d8483d358747ad006cb37a9f29fc96e10a8827.zip
Some clients set the urgency flag even if they are the active client;
prevent annoying behavior by only setting the cwm urgency flag if the client
is not active; diff from Thomas Adam.
-rw-r--r--client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client.c b/client.c
index 1cb0021..6fa7c1b 100644
--- a/client.c
+++ b/client.c
@@ -491,7 +491,8 @@ client_unhide(struct client_ctx *cc)
 void
 client_urgency(struct client_ctx *cc)
 {
-	cc->flags |= CLIENT_URGENCY;
+	if (!cc->active)
+		cc->flags |= CLIENT_URGENCY;
 }
 
 void