sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit dfccd2a4c483a6ff03350cd4ac5e3fada1f40f2e
parent 1bfbf262cc501db7bd94f651ea16aa4af607f548
Author: Simon Ser <contact@emersion.fr>
Date:   Thu,  2 Jul 2020 13:48:57 +0200

Don't set xwayland cursor when wlr_xwayland failed

This causes a NULL pointer dereference.

Diffstat:
Msway/input/seat.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)) {