From 9a10b8ff94cc9506a4ecd8ade7489fa9a5af406a Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 24 May 2019 20:57:16 +0200 Subject: [PATCH] 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 --- src/wayland/meta-xwayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index 04d2df865..aba16413a 100644 --- a/src/wayland/meta-xwayland.c +++ b/src/wayland/meta-xwayland.c @@ -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 */