mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 02:45:34 +00:00
Fixed bug 4011 - Wayland: fix free cursor
Vladimir Sometimes SDL application crashes on cursor free. Patch tested under Centos 7 + weston
This commit is contained in:
parent
e3cc5b2c6b
commit
6bc3873729
|
@ -588,6 +588,7 @@ seat_handle_capabilities(void *data, struct wl_seat *seat,
|
||||||
} else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && input->pointer) {
|
} else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && input->pointer) {
|
||||||
wl_pointer_destroy(input->pointer);
|
wl_pointer_destroy(input->pointer);
|
||||||
input->pointer = NULL;
|
input->pointer = NULL;
|
||||||
|
input->display->pointer = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((caps & WL_SEAT_CAPABILITY_TOUCH) && !input->touch) {
|
if ((caps & WL_SEAT_CAPABILITY_TOUCH) && !input->touch) {
|
||||||
|
|
Loading…
Reference in a new issue