Need to check structure version before setting xdg_toplevel to NULL
parent
14f225198d
commit
9672d58119
|
@ -651,9 +651,11 @@ Wayland_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
info->info.wl.xdg_surface = NULL;
|
info->info.wl.xdg_surface = NULL;
|
||||||
|
if (version >= SDL_VERSIONNUM(2, 0, 17)) {
|
||||||
info->info.wl.xdg_toplevel = NULL;
|
info->info.wl.xdg_toplevel = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Deprecated in 2.0.16 */
|
/* Deprecated in 2.0.16 */
|
||||||
info->info.wl.shell_surface = NULL;
|
info->info.wl.shell_surface = NULL;
|
||||||
|
|
Loading…
Reference in New Issue