]> git.sur5r.net Git - i3/i3/commitdiff
re-implement click to focus
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 28 Jun 2010 20:26:23 +0000 (22:26 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 28 Jun 2010 20:26:23 +0000 (22:26 +0200)
src/click.c

index bb4af66aa5c5e952b5183a1ee6ea62fde30c7507..dc73cbdc7ddc36711e948fb00dde2f725cabbede 100644 (file)
@@ -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;