From: Michael Stapelberg Date: Mon, 28 Jun 2010 20:26:23 +0000 (+0200) Subject: re-implement click to focus X-Git-Tag: tree-pr1~179 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=574e6b51d18cffb9bffcdd7dcde0e2df92560ae6;p=i3%2Fi3 re-implement click to focus --- diff --git a/src/click.c b/src/click.c index bb4af66a..dc73cbdc 100644 --- a/src/click.c +++ b/src/click.c @@ -298,6 +298,10 @@ int handle_button_press(void *ignored, xcb_connection_t *conn, xcb_button_press_ return 1; } + /* click to focus */ + con_focus(con); + tree_render(); + xcb_allow_events(conn, XCB_ALLOW_REPLAY_POINTER, event->time); xcb_flush(conn); return 0;