mirror of
https://github.com/swaywm/sway.git
synced 2025-11-21 06:59:48 -05:00
Store previous position in sway_cursor.
This commit is contained in:
parent
06098bef98
commit
4cd304e4ba
5 changed files with 56 additions and 47 deletions
|
|
@ -602,7 +602,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
|
|||
wlr_output, seat->cursor->cursor->x,
|
||||
seat->cursor->cursor->y)) {
|
||||
wlr_cursor_warp(seat->cursor->cursor, NULL, x, y);
|
||||
cursor_send_pointer_motion(seat->cursor, 0, 0, 0, true);
|
||||
cursor_send_pointer_motion(seat->cursor, 0, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -613,7 +613,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
|
|||
}
|
||||
|
||||
if (last_workspace && last_workspace != new_workspace) {
|
||||
cursor_send_pointer_motion(seat->cursor, 0, 0, 0, true);
|
||||
cursor_send_pointer_motion(seat->cursor, 0, true);
|
||||
}
|
||||
|
||||
seat->has_focus = (container != NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue