From: Michael Stapelberg Date: Sun, 22 Oct 2017 20:16:15 +0000 (+0200) Subject: _NET_ACTIVE_WINDOW: invalidate focus to force SetInputFocus call (#3027) X-Git-Tag: 4.15~49 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4f751610c2a51fb35755db87fafee8598d6d7bd3;p=i3%2Fi3 _NET_ACTIVE_WINDOW: invalidate focus to force SetInputFocus call (#3027) The sender of the _NET_ACTIVE_WINDOW client message might know better when to set focus than i3, as i3 does not know about unmanaged (override_redirect=1) windows. related to https://github.com/i3/i3lock/issues/35 --- diff --git a/src/handlers.c b/src/handlers.c index 3140e405..436fb2ab 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -774,6 +774,8 @@ static void handle_client_message(xcb_client_message_event_t *event) { scratchpad_show(con); } else { workspace_show(ws); + /* Re-set focus, even if unchanged from i3’s perspective. */ + focused_id = XCB_NONE; con_focus(con); } } else {