From 6bc38737299fd5f37b8be2a7ff920d5ade9316ea Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 3 Jan 2018 10:07:27 -0800 Subject: [PATCH] Fixed bug 4011 - Wayland: fix free cursor Vladimir Sometimes SDL application crashes on cursor free. Patch tested under Centos 7 + weston --- src/video/wayland/SDL_waylandevents.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c index 7e8d6c9367f6a..7e4b782045156 100644 --- a/src/video/wayland/SDL_waylandevents.c +++ b/src/video/wayland/SDL_waylandevents.c @@ -588,6 +588,7 @@ seat_handle_capabilities(void *data, struct wl_seat *seat, } else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && input->pointer) { wl_pointer_destroy(input->pointer); input->pointer = NULL; + input->display->pointer = NULL; } if ((caps & WL_SEAT_CAPABILITY_TOUCH) && !input->touch) {