Skip to content

Commit d4819db

Browse files
Sackzementslouken
authored andcommitted
SDL_waylandvideo.c:display_remove_global(): Check pointer when removing mouse
1 parent 7017fba commit d4819db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video/wayland/SDL_waylandvideo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ static void display_remove_global(void *data, struct wl_registry *registry, uint
13741374
if (seat->keyboard.wl_keyboard) {
13751375
SDL_RemoveKeyboard(seat->keyboard.sdl_id, true);
13761376
}
1377-
if (seat->keyboard.wl_keyboard) {
1377+
if (seat->pointer.wl_pointer) {
13781378
SDL_RemoveMouse(seat->pointer.sdl_id, true);
13791379
}
13801380
Wayland_SeatDestroy(seat, true);

0 commit comments

Comments
 (0)