]> git.sur5r.net Git - i3/i3/commitdiff
Also warp the pointer when moving a window to a another visible workspace (Thanks...
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 12 Feb 2010 15:19:58 +0000 (16:19 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 12 Feb 2010 15:19:58 +0000 (16:19 +0100)
src/commands.c

index 1bec7a84aaf18c8d7aacdc20f4c8c1bfe4e81064..2a2399d74f6e5cd4cf6bf6bdaba1cb0d2fc14194 100644 (file)
@@ -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);
+        }
 }
 
 /*