From: Michael Stapelberg Date: Fri, 12 Feb 2010 15:19:58 +0000 (+0100) Subject: Also warp the pointer when moving a window to a another visible workspace (Thanks... X-Git-Tag: 3.e~6^2~149 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e446747812e6bdc4efff87e57a26ff12335691d2;p=i3%2Fi3 Also warp the pointer when moving a window to a another visible workspace (Thanks Thomas) --- diff --git a/src/commands.c b/src/commands.c index 1bec7a84..2a2399d7 100644 --- a/src/commands.c +++ b/src/commands.c @@ -636,8 +636,10 @@ static void move_current_window_to_workspace(xcb_connection_t *conn, int workspa render_layout(conn); - if (workspace_is_visible(to_container->workspace)) + if (workspace_is_visible(to_container->workspace)) { + client_warp_pointer_into(conn, current_client); set_focus(conn, current_client, true); + } } /*