From e446747812e6bdc4efff87e57a26ff12335691d2 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 12 Feb 2010 16:19:58 +0100 Subject: [PATCH] Also warp the pointer when moving a window to a another visible workspace (Thanks Thomas) --- src/commands.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); + } } /* -- 2.39.5