From fac57699b4d416cfcbaaaba22bbbeac65e157cbd Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 4 Sep 2016 21:08:21 +0200 Subject: [PATCH] Bugfix: avoid setting urgency hint on content container and above fixes #2098 (I _think_) --- src/con.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/con.c b/src/con.c index dbb6d601..124d24ea 100644 --- a/src/con.c +++ b/src/con.c @@ -1948,6 +1948,13 @@ bool con_has_urgent_child(Con *con) { void con_update_parents_urgency(Con *con) { Con *parent = con->parent; + /* Urgency hints should not be set on any container higher up in the + * hierarchy than the workspace level. Unfortunately, since the content + * container has type == CT_CON, that’s not easy to verify in the loop + * below, so we need another condition to catch that case: */ + if (con->type == CT_WORKSPACE) + return; + bool new_urgency_value = con->urgent; while (parent && parent->type != CT_WORKSPACE && parent->type != CT_DOCKAREA) { if (new_urgency_value) { -- 2.39.5