mirror of
https://github.com/encounter/SDL.git
synced 2025-05-29 10:41:36 +00:00
Need to check structure version before setting xdg_toplevel to NULL
This commit is contained in:
parent
14f225198d
commit
9672d58119
@ -651,7 +651,9 @@ Wayland_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
info->info.wl.xdg_surface = NULL;
|
info->info.wl.xdg_surface = NULL;
|
||||||
info->info.wl.xdg_toplevel = NULL;
|
if (version >= SDL_VERSIONNUM(2, 0, 17)) {
|
||||||
|
info->info.wl.xdg_toplevel = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user