]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Invalidate focused_id to correctly focus new windows with the same ID
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 11 Dec 2010 16:03:53 +0000 (17:03 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 11 Dec 2010 16:03:53 +0000 (17:03 +0100)
src/x.c

diff --git a/src/x.c b/src/x.c
index 11efa5e5c30e6384de77ac093e6051670e6a9971..979b873418b1ffe741ba1fbe292517ac92bc21ac 100644 (file)
--- 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;
 }
 
 /*