Fixed bug 4011 - Wayland: fix free cursor
authorSam Lantinga <slouken@libsdl.org>
Wed, 03 Jan 2018 10:07:27 -0800
changeset 11812a9a3023d29f9
parent 11811 5d94cb6b24d3
child 11813 ea7c4b476853
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 --- a/src/video/wayland/SDL_waylandevents.c	Wed Jan 03 10:03:25 2018 -0800
     1.2 +++ b/src/video/wayland/SDL_waylandevents.c	Wed Jan 03 10:07:27 2018 -0800
     1.3 @@ -588,6 +588,7 @@
     1.4      } else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && input->pointer) {
     1.5          wl_pointer_destroy(input->pointer);
     1.6          input->pointer = NULL;
     1.7 +        input->display->pointer = NULL;
     1.8      }
     1.9  
    1.10      if ((caps & WL_SEAT_CAPABILITY_TOUCH) && !input->touch) {