From a2fdac2c4b81b6da95b914a5f65fb297cb8d4ce4 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 19 Oct 2018 07:57:50 +1000 Subject: Consider cursor warp when switching workspaces Fixes a regression introduced in 24a90e5d86441fc345356eb3767e5a6880dcedbd. consider_warp_to_focus has been renamed to seat_consider_warp_to_focus, moved to seat.c and made public. It is now called when switching workspaces via `workspace `. --- sway/commands/workspace.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sway/commands/workspace.c') diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c index 58c2201d..da597f8a 100644 --- a/sway/commands/workspace.c +++ b/sway/commands/workspace.c @@ -157,6 +157,7 @@ struct cmd_results *cmd_workspace(int argc, char **argv) { free(name); } workspace_switch(ws, no_auto_back_and_forth); + seat_consider_warp_to_focus(config->handler_context.seat); } return cmd_results_new(CMD_SUCCESS, NULL, NULL); } -- cgit v1.2.3-54-g00ecf