From e9e28baab7892a499e964ee63483ae0a21f99511 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 13 Aug 2019 20:52:34 +0200 Subject: [PATCH] wayland: Create XAuthority file once Where the prepare_auth_file() call is, it does create a new one on every respawn of Xwayland. This is not benefitial, as the XAUTHORITY envvar is already fixed in the session. Only create the XAuthority file once, and reuse it on future Xwayland respawns. https://gitlab.gnome.org/GNOME/mutter/merge_requests/728 --- src/wayland/meta-xwayland.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index 791c07794..fec8662cc 100644 --- a/src/wayland/meta-xwayland.c +++ b/src/wayland/meta-xwayland.c @@ -743,6 +743,9 @@ meta_xwayland_init (MetaXWaylandManager *manager, { if (!choose_xdisplay (manager)) return FALSE; + + if (!prepare_auth_file (manager)) + return FALSE; } else { @@ -750,9 +753,6 @@ meta_xwayland_init (MetaXWaylandManager *manager, return FALSE; } - if (!prepare_auth_file (manager)) - return FALSE; - manager->wayland_display = wl_display; policy = meta_get_x11_display_policy ();