Don't set xwayland cursor when wlr_xwayland failed

This causes a NULL pointer dereference.
This commit is contained in:
Simon Ser 2020-07-02 13:48:57 +02:00
parent 92891fb1ed
commit ee4424fc0e
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -924,7 +924,7 @@ void seat_configure_xcursor(struct sway_seat *seat) {
}
#if HAVE_XWAYLAND
if (config->xwayland && (!server.xwayland.xcursor_manager ||
if (server.xwayland.wlr_xwayland && (!server.xwayland.xcursor_manager ||
!xcursor_manager_is_named(server.xwayland.xcursor_manager,
cursor_theme) ||
server.xwayland.xcursor_manager->size != cursor_size)) {