From 574e6b51d18cffb9bffcdd7dcde0e2df92560ae6 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 28 Jun 2010 22:26:23 +0200 Subject: [PATCH] re-implement click to focus --- src/click.c | 4 ++++ 1 file changed, 4 insertions(+) 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;