summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-08 10:25:08 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-08 10:25:08 +0100
commit5989caf070c31397828c44ed2bfc3dc1d009e75d (patch)
tree03d8f03fe39a5aaceb2fa4384dcf4bc2f4c41992 /src/drivers/Wayland
parent93b26e4d3b2142f20dd6078fe0445ba6f7e26645 (diff)
Wayland: fix crash in editor after return from switching user
Diffstat (limited to 'src/drivers/Wayland')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
index a8a6c7298..c42f3f572 100644
--- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
@@ -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;