Fix invisible cursor on startup

This commit is contained in:
Simon Ser 2020-04-15 18:24:22 +02:00 committed by Drew DeVault
parent f55de073c2
commit 6021fc4a08

View file

@ -933,6 +933,8 @@ void seat_configure_xcursor(struct sway_seat *seat) {
} }
} }
// Reset the cursor so that we apply it to outputs that just appeared
cursor_set_image(seat->cursor, NULL, NULL);
cursor_set_image(seat->cursor, "left_ptr", NULL); cursor_set_image(seat->cursor, "left_ptr", NULL);
wlr_cursor_warp(seat->cursor->cursor, NULL, seat->cursor->cursor->x, wlr_cursor_warp(seat->cursor->cursor, NULL, seat->cursor->cursor->x,
seat->cursor->cursor->y); seat->cursor->cursor->y);