From: Michael Stapelberg Date: Sat, 11 Dec 2010 16:03:53 +0000 (+0100) Subject: Bugfix: Invalidate focused_id to correctly focus new windows with the same ID X-Git-Tag: tree-pr2~163 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d5421e6a40874a98e954f3643ca01969efe3c81;p=i3%2Fi3 Bugfix: Invalidate focused_id to correctly focus new windows with the same ID --- diff --git a/src/x.c b/src/x.c index 11efa5e5..979b8734 100644 --- a/src/x.c +++ b/src/x.c @@ -168,6 +168,9 @@ void x_con_kill(Con *con) { state = state_for_frame(con->frame); CIRCLEQ_REMOVE(&state_head, state, state); CIRCLEQ_REMOVE(&old_state_head, state, old_state); + + /* Invalidate focused_id to correctly focus new windows with the same ID */ + focused_id = XCB_NONE; } /*