Fix: killing unfocused window shouldn't produce focus event

This commit is contained in:
Orestis Floros
2018-12-14 20:37:29 +02:00
parent f70c3b168d
commit dd708199ea
2 changed files with 21 additions and 1 deletions

View File

@ -276,7 +276,12 @@ static void _x_con_kill(Con *con) {
free(state);
/* Invalidate focused_id to correctly focus new windows with the same ID */
focused_id = last_focused = XCB_NONE;
if (con->frame.id == focused_id) {
focused_id = XCB_NONE;
}
if (con->frame.id == last_focused) {
last_focused = XCB_NONE;
}
}
/*