mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 04:58:16 +02:00
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:
parent
60963b795c
commit
65c7cc45b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue