mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
wayland: Clean up Wayland clients and display on shutdown
This will clean up Wayland related objects, e.g. surfaces and buffers. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1822>
This commit is contained in:
parent
22417b8a94
commit
0a12f1c9c6
@ -591,7 +591,12 @@ meta_wayland_finalize (void)
|
|||||||
compositor = meta_wayland_compositor_get_default ();
|
compositor = meta_wayland_compositor_get_default ();
|
||||||
|
|
||||||
meta_xwayland_shutdown (&compositor->xwayland_manager);
|
meta_xwayland_shutdown (&compositor->xwayland_manager);
|
||||||
|
|
||||||
|
if (compositor->wayland_display)
|
||||||
|
wl_display_destroy_clients (compositor->wayland_display);
|
||||||
|
|
||||||
g_clear_pointer (&compositor->display_name, g_free);
|
g_clear_pointer (&compositor->display_name, g_free);
|
||||||
|
g_clear_pointer (&compositor->wayland_display, wl_display_destroy);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user