aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2014-02-06 20:58:46 +0000
committerokan2014-02-06 20:58:46 +0000
commit4ddc371064d979e86023762a9e9e4bab0b52bc98 (patch)
tree1b5cd7ba45bc17dfc176b9cd49506e0fa607b870 /client.c
parenta0551f88bbfd3d91402c779824dabeb7969849a2 (diff)
downloadcwm-4ddc371064d979e86023762a9e9e4bab0b52bc98.tar.gz
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.
Diffstat (limited to 'client.c')
-rw-r--r--client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/client.c b/client.c
index 684dacd..2ac5719 100644
--- a/client.c
+++ b/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.171 2014/02/03 20:20:39 okan Exp $
+ * $OpenBSD: client.c,v 1.172 2014/02/06 20:58:46 okan Exp $
*/
#include <sys/param.h>
@@ -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