aboutsummaryrefslogtreecommitdiff
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-06 12:10:00 +0100
committerGitHub <noreply@github.com>2018-06-06 12:10:00 +0100
commitb1e72461cf800625061b44fb65e392f57455c8fb (patch)
tree19f01bff326a249307b85840fa839284aabd9e66 /sway/input/cursor.c
parentcac400a40bf032d0ba29f28d91a633f9938451d5 (diff)
parent609c420501cba7fe1d32d50a5b5ed79ba7d8a062 (diff)
Merge pull request #2110 from smlx/initialise-cursor-previous
Initialise previous cursor position.
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index d6e17ae1..4100479c 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -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);