mirror of
https://github.com/swaywm/sway.git
synced 2026-04-30 06:46:24 -04:00
Introduce cursor_rebase
This function "rebases" the cursor on top of whatever is underneath it, without triggering any focus changes.
This commit is contained in:
parent
28f3b8cb03
commit
9ea71f292b
8 changed files with 78 additions and 51 deletions
|
|
@ -236,7 +236,7 @@ struct cmd_results *cmd_focus(int argc, char **argv) {
|
|||
if (argc == 0 && container) {
|
||||
seat_set_focus_container(seat, container);
|
||||
seat_consider_warp_to_focus(seat);
|
||||
cursor_send_pointer_motion(seat->cursor, 0, true);
|
||||
cursor_rebase(seat->cursor);
|
||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue