diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-19 07:57:50 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-19 08:00:13 +1000 |
commit | a2fdac2c4b81b6da95b914a5f65fb297cb8d4ce4 (patch) | |
tree | cc3e83eae5042db2ca75b063413d4d8403e79a7a /sway/commands/workspace.c | |
parent | Merge pull request #2874 from ianyfan/swaybar (diff) | |
download | sway-a2fdac2c4b81b6da95b914a5f65fb297cb8d4ce4.tar.gz sway-a2fdac2c4b81b6da95b914a5f65fb297cb8d4ce4.tar.zst sway-a2fdac2c4b81b6da95b914a5f65fb297cb8d4ce4.zip |
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 <ws>`.
Diffstat (limited to 'sway/commands/workspace.c')
-rw-r--r-- | sway/commands/workspace.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { | |||
157 | free(name); | 157 | free(name); |
158 | } | 158 | } |
159 | workspace_switch(ws, no_auto_back_and_forth); | 159 | workspace_switch(ws, no_auto_back_and_forth); |
160 | seat_consider_warp_to_focus(config->handler_context.seat); | ||
160 | } | 161 | } |
161 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 162 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
162 | } | 163 | } |