From 1962c30dfb3baee0fb98589aca575ae54d1142e0 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 21 Mar 2012 22:27:31 +0100 Subject: [PATCH] Force WM_TAKE_FOCUS event to be sent again upon EnterNotify MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/handlers.c | 1 + 1 file changed, 1 insertion(+) 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();