Wayland: fix crash in editor after return from switching user

This commit is contained in:
ManoloFLTK 2023-11-08 10:25:08 +01:00
parent 93b26e4d3b
commit 5989caf070
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ static void do_set_cursor(struct Fl_Wayland_Screen_Driver::seat *seat,
struct wl_buffer *buffer;
const int scale = seat->pointer_scale;
if (!seat->cursor_theme)
if (!seat->cursor_theme || !seat->wl_pointer)
return;
if (!wl_cursor) wl_cursor = seat->default_cursor;