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:
Ryan Dwyer 2018-10-19 00:04:21 +10:00
parent 28f3b8cb03
commit 9ea71f292b
8 changed files with 78 additions and 51 deletions

View file

@ -96,7 +96,7 @@ struct cmd_results *cmd_border(int argc, char **argv) {
struct sway_seat *seat = input_manager_current_seat(input_manager);
if (seat->cursor) {
cursor_send_pointer_motion(seat->cursor, 0, false);
cursor_rebase(seat->cursor);
}
return cmd_results_new(CMD_SUCCESS, NULL, NULL);