[mutter/wip/carlosg/on-demand-fixes: 1/3] wayland: Create XAuthority file once
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/on-demand-fixes: 1/3] wayland: Create XAuthority file once
- Date: Thu, 15 Aug 2019 12:59:22 +0000 (UTC)
commit 77cd19dd3dbbd6d149c7bc85d63fb831d9155241
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Aug 13 20:52:34 2019 +0200
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.
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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]