mirror of
https://github.com/NickHu/sway
synced 2024-12-28 22:23:30 +01:00
Merge pull request #2110 from smlx/initialise-cursor-previous
Initialise previous cursor position.
This commit is contained in:
commit
b1e72461cf
1 changed files with 3 additions and 0 deletions
|
@ -480,6 +480,9 @@ struct sway_cursor *sway_cursor_create(struct sway_seat *seat) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
cursor->previous.x = wlr_cursor->x;
|
||||
cursor->previous.y = wlr_cursor->y;
|
||||
|
||||
cursor->seat = seat;
|
||||
wlr_cursor_attach_output_layout(wlr_cursor,
|
||||
root_container.sway_root->output_layout);
|
||||
|
|
Loading…
Reference in a new issue