mirror of https://github.com/fltk/fltk
Wayland: fix crash in editor after return from switching user
This commit is contained in:
parent
93b26e4d3b
commit
5989caf070
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue