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
This commit is contained in:
Michael Stapelberg 2012-03-21 22:27:31 +01:00
parent ea97119a76
commit 1962c30dfb
1 changed files with 1 additions and 0 deletions

View 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();