re-implement click to focus

This commit is contained in:
Michael Stapelberg 2010-06-28 22:26:23 +02:00
parent c33d352fd2
commit 574e6b51d1
1 changed files with 4 additions and 0 deletions

View File

@ -298,6 +298,10 @@ int handle_button_press(void *ignored, xcb_connection_t *conn, xcb_button_press_
return 1; return 1;
} }
/* click to focus */
con_focus(con);
tree_render();
xcb_allow_events(conn, XCB_ALLOW_REPLAY_POINTER, event->time); xcb_allow_events(conn, XCB_ALLOW_REPLAY_POINTER, event->time);
xcb_flush(conn); xcb_flush(conn);
return 0; return 0;