aboutsummaryrefslogtreecommitdiff
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-07-02 13:48:57 +0200
committerTudor Brindus <me@tbrindus.ca>2020-07-02 23:55:56 -0400
commitdfccd2a4c483a6ff03350cd4ac5e3fada1f40f2e (patch)
treeafbe8228c4db10f68eda5bc1de672a692956f3fb /sway/input/seat.c
parent1bfbf262cc501db7bd94f651ea16aa4af607f548 (diff)
Don't set xwayland cursor when wlr_xwayland failed
This causes a NULL pointer dereference.
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 1e987360..656e3e7e 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -925,7 +925,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)) {