mirror of https://github.com/libsdl-org/SDL.git
wayland: Clean up xdg_dialog objects with toplevel windows
This commit is contained in:
parent
d95f5bad24
commit
05c5b3398f
|
|
@ -1858,6 +1858,11 @@ void Wayland_HideWindow(SDL_VideoDevice *_this, SDL_Window *window)
|
||||||
SDL_SetStringProperty(props, SDL_PROP_WINDOW_WAYLAND_XDG_TOPLEVEL_EXPORT_HANDLE_STRING, NULL);
|
SDL_SetStringProperty(props, SDL_PROP_WINDOW_WAYLAND_XDG_TOPLEVEL_EXPORT_HANDLE_STRING, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wind->xdg_dialog_v1) {
|
||||||
|
xdg_dialog_v1_destroy(wind->xdg_dialog_v1);
|
||||||
|
wind->xdg_dialog_v1 = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_LIBDECOR_H
|
#ifdef HAVE_LIBDECOR_H
|
||||||
if (wind->shell_surface_type == WAYLAND_SURFACE_LIBDECOR) {
|
if (wind->shell_surface_type == WAYLAND_SURFACE_LIBDECOR) {
|
||||||
if (wind->shell_surface.libdecor.frame) {
|
if (wind->shell_surface.libdecor.frame) {
|
||||||
|
|
@ -2618,10 +2623,6 @@ void Wayland_DestroyWindow(SDL_VideoDevice *_this, SDL_Window *window)
|
||||||
wp_fractional_scale_v1_destroy(wind->fractional_scale);
|
wp_fractional_scale_v1_destroy(wind->fractional_scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wind->xdg_dialog_v1) {
|
|
||||||
xdg_dialog_v1_destroy(wind->xdg_dialog_v1);
|
|
||||||
}
|
|
||||||
|
|
||||||
SDL_free(wind->outputs);
|
SDL_free(wind->outputs);
|
||||||
SDL_free(wind->app_id);
|
SDL_free(wind->app_id);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue