From: Michael Stapelberg Date: Sun, 4 Sep 2016 19:08:21 +0000 (+0200) Subject: Bugfix: avoid setting urgency hint on content container and above X-Git-Tag: 4.13~51 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fac57699b4d416cfcbaaaba22bbbeac65e157cbd;p=i3%2Fi3 Bugfix: avoid setting urgency hint on content container and above fixes #2098 (I _think_) --- 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) {