mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05: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
|
|
@ -653,9 +653,8 @@ void view_unmap(struct sway_view *view) {
|
|||
} else if (node && node->type == N_WORKSPACE) {
|
||||
cursor_warp_to_workspace(seat->cursor, node->sway_workspace);
|
||||
}
|
||||
} else {
|
||||
cursor_send_pointer_motion(seat->cursor, 0, true);
|
||||
}
|
||||
cursor_rebase(seat->cursor);
|
||||
}
|
||||
|
||||
transaction_commit_dirty();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue