Commit aa703285 authored by Matthew Waters's avatar Matthew Waters 🐨 Committed by GStreamer Merge Bot

gl/wayland: fix xdg shell close notification

Don't segfault by not calling the appropriate callback that destroys
resources in the correct order.
parent 6dbda068
......@@ -234,11 +234,14 @@ static const struct wl_shell_surface_listener wl_shell_surface_listener = {
static void
handle_xdg_toplevel_close (void *data, struct xdg_toplevel *xdg_toplevel)
{
GstGLWindowWaylandEGL *window_egl = data;
GstGLWindow *window = data;
GST_DEBUG ("XDG toplevel got a \"close\" event.");
gst_gl_window_wayland_egl_close (GST_GL_WINDOW (window_egl));
if (window->close)
window->close (window->close_data);
gst_gl_display_remove_window (window->display, window);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment