]> git.sur5r.net Git - i3/i3/commitdiff
Force WM_TAKE_FOCUS event to be sent again upon EnterNotify
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 21 Mar 2012 21:27:31 +0000 (22:27 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 21 Mar 2012 21:27:31 +0000 (22:27 +0100)
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

index e2fa205ca02535098d70c30be82ac970175f30d2..1b44288dda4a6ef943471e2b95fd8459ca7fb050 100644 (file)
@@ -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();