[mutter/wip/carlosg/xwayland-on-demand: 151/159] wayland: Disconnect signal when the display closes
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/xwayland-on-demand: 151/159] wayland: Disconnect signal when the display closes
- Date: Sat, 22 Jun 2019 09:01:11 +0000 (UTC)
commit cb6a14bd191fab03169e89e0a645b36ab0a68bed
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri May 24 20:57:16 2019 +0200
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.
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 2471b689e..36d935ca6 100644
--- a/src/wayland/meta-xwayland.c
+++ b/src/wayland/meta-xwayland.c
@@ -633,6 +633,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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]