]> git.sur5r.net Git - i3/i3/commitdiff
make pointer follow the focus when moving to a different screen also for floating...
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 17 Mar 2010 02:18:13 +0000 (03:18 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 17 Mar 2010 02:18:13 +0000 (03:18 +0100)
src/commands.c

index 6276ac199b3ee60a70173b7427b05fb61b8e8a53..28bf7dc15ae043dcd7c29674333de22486ff99b4 100644 (file)
@@ -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);
+        }
 }
 
 /*