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.
This commit is contained in:
Carlos Garnacho
2019-05-24 20:57:16 +02:00
parent 885f89a217
commit d367d97364

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 */