From ee4424fc0e727c2e48968af46b7e1f4f53d0e1bb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 2 Jul 2020 13:48:57 +0200 Subject: [PATCH] Don't set xwayland cursor when wlr_xwayland failed This causes a NULL pointer dereference. --- sway/input/seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/input/seat.c b/sway/input/seat.c index a54bc2e7d..8aa12c43c 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -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)) {