From: Michael Stapelberg Date: Wed, 25 Mar 2015 19:49:19 +0000 (+0100) Subject: Bugfix: skip restart_mode swallow specifications X-Git-Tag: 4.10.1~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=26237508eadb5f71befe4c64ab65430757d4b213;p=i3%2Fi3 Bugfix: skip restart_mode swallow specifications Otherwise, placeholder windows would accumulate these over restarts. The worst part is that they don’t get dumped properly, meaning an empty swallows specification ends up in the state, which matches any window, so other random windows would be matched into the placeholder (e.g. i3bar). fixes #1502 --- diff --git a/src/ipc.c b/src/ipc.c index acd2267b..ff2cd820 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -450,6 +450,10 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) { y(array_open); Match *match; TAILQ_FOREACH(match, &(con->swallow_head), matches) { + /* We will generate a new restart_mode match specification after this + * loop, so skip this one. */ + if (match->restart_mode) + continue; y(map_open); if (match->dock != -1) { ystr("dock");