wayland: Disconnect signal when the display closes

It would be potentially left dangling if the display were closed, and
reconnected again when restarting the server.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/709
This commit is contained in:
Carlos Garnacho 2019-05-24 20:57:16 +02:00 committed by Carlos Garnacho
parent 8b62f4884d
commit 9a10b8ff94

View File

@ -638,6 +638,9 @@ static void
on_x11_display_closing (MetaDisplay *display)
{
meta_xwayland_shutdown_dnd ();
g_signal_handlers_disconnect_by_func (display,
on_x11_display_closing,
NULL);
}
/* To be called right after connecting */