1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 04:33:59 +01:00

Initialise previous cursor position.

Fix the problem with focus jumping to the container under the cursor
when first starting sway.
This commit is contained in:
Scott Leggett 2018-06-06 20:45:02 +10:00
parent cac400a40b
commit 609c420501

@ -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);