diff options
author | Simon Ser <contact@emersion.fr> | 2020-04-15 18:24:22 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-05-01 16:57:24 +0200 |
commit | 6021fc4a08c9a870e2821b907e056f336c39a99a (patch) | |
tree | e52ea569f7c54e123e932d22fca40f2aa1228d16 /sway/input | |
parent | Don't assert the cursor theme loads (diff) | |
download | sway-6021fc4a08c9a870e2821b907e056f336c39a99a.tar.gz sway-6021fc4a08c9a870e2821b907e056f336c39a99a.tar.zst sway-6021fc4a08c9a870e2821b907e056f336c39a99a.zip |
Fix invisible cursor on startup
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/seat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index a71d794b..df54261d 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -933,6 +933,8 @@ void seat_configure_xcursor(struct sway_seat *seat) { | |||
933 | } | 933 | } |
934 | } | 934 | } |
935 | 935 | ||
936 | // Reset the cursor so that we apply it to outputs that just appeared | ||
937 | cursor_set_image(seat->cursor, NULL, NULL); | ||
936 | cursor_set_image(seat->cursor, "left_ptr", NULL); | 938 | cursor_set_image(seat->cursor, "left_ptr", NULL); |
937 | wlr_cursor_warp(seat->cursor->cursor, NULL, seat->cursor->cursor->x, | 939 | wlr_cursor_warp(seat->cursor->cursor, NULL, seat->cursor->cursor->x, |
938 | seat->cursor->cursor->y); | 940 | seat->cursor->cursor->y); |