clients/window: Fix segfault when dragging with touchscreen

Signed-off-by: lxylxy123456 <lixiaoyi13691419520@gmail.com>
(cherry picked from commit 874bf36c51)
This commit is contained in:
lxylxy123456 2026-02-09 08:25:33 +00:00 committed by Marius Vlad
parent 60963b795c
commit 65c7cc45b3

View file

@ -3889,7 +3889,7 @@ input_set_pointer_image_index(struct input *input, int index)
struct wl_cursor_image *image;
int dx = 0, dy = 0;
if (!input->pointer)
if (!input->pointer || !input->pointer_surface)
return;
cursor = input->display->cursors[input->current_cursor];