mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-05 21:07:53 +00:00
SDL_waylandvideo.c:display_remove_global(): Check pointer when removing mouse
This commit is contained in:
committed by
Sam Lantinga
parent
7017fbaa8e
commit
d4819db5e6
@@ -1374,7 +1374,7 @@ static void display_remove_global(void *data, struct wl_registry *registry, uint
|
||||
if (seat->keyboard.wl_keyboard) {
|
||||
SDL_RemoveKeyboard(seat->keyboard.sdl_id, true);
|
||||
}
|
||||
if (seat->keyboard.wl_keyboard) {
|
||||
if (seat->pointer.wl_pointer) {
|
||||
SDL_RemoveMouse(seat->pointer.sdl_id, true);
|
||||
}
|
||||
Wayland_SeatDestroy(seat, true);
|
||||
|
||||
Reference in New Issue
Block a user