summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-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;