From: Michael Stapelberg Date: Wed, 21 Mar 2012 21:27:31 +0000 (+0100) Subject: Force WM_TAKE_FOCUS event to be sent again upon EnterNotify X-Git-Tag: 4.2~46^2^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1962c30dfb3baee0fb98589aca575ae54d1142e0;p=i3%2Fi3 Force WM_TAKE_FOCUS event to be sent again upon EnterNotify This fixes focus problems with Eclipse. Apparently, Eclipse waits for getting notified about the focus, and since it used non-managed windows, i3 didn’t care to update the focus. Fixes: #621, #675 --- diff --git a/src/handlers.c b/src/handlers.c index e2fa205c..1b44288d 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -233,6 +233,7 @@ static int handle_enter_notify(xcb_enter_notify_event_t *event) { if (ws != con_get_workspace(focused)) workspace_show(ws); + focused_id = XCB_NONE; con_focus(con_descend_focused(con)); tree_render();