Skip to content

Commit

Permalink
Fixed bug 4011 - Wayland: fix free cursor
Browse files Browse the repository at this point in the history
Vladimir

Sometimes SDL application crashes on cursor free.

Patch tested under Centos 7 + weston
  • Loading branch information
slouken committed Jan 3, 2018
1 parent e3cc5b2 commit 6bc3873
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/wayland/SDL_waylandevents.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 6bc3873

Please sign in to comment.