From: Michael Stapelberg Date: Wed, 17 Mar 2010 02:18:13 +0000 (+0100) Subject: make pointer follow the focus when moving to a different screen also for floating... X-Git-Tag: 3.e~6^2~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a604af6340c41220e7055abec555ecbb95f46f50;p=i3%2Fi3 make pointer follow the focus when moving to a different screen also for floating windows --- diff --git a/src/commands.c b/src/commands.c index 6276ac19..28bf7dc1 100644 --- a/src/commands.c +++ b/src/commands.c @@ -620,8 +620,10 @@ static void move_floating_window_to_workspace(xcb_connection_t *conn, Client *cl render_layout(conn); - if (workspace_is_visible(t_ws)) + if (workspace_is_visible(t_ws)) { + client_warp_pointer_into(conn, client); set_focus(conn, client, true); + } } /*