From 65c7cc45b37678ebdea94a49c9b5d09e17f53ed3 Mon Sep 17 00:00:00 2001 From: lxylxy123456 Date: Mon, 9 Feb 2026 08:25:33 +0000 Subject: [PATCH] clients/window: Fix segfault when dragging with touchscreen Signed-off-by: lxylxy123456 (cherry picked from commit 874bf36c51aec511b297eca3ba3e1145dd5a8a41) --- clients/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index 106742ec0..ae03b96f2 100644 --- a/clients/window.c +++ b/clients/window.c @@ -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];