core: Use DISPLAY envvar to forward in the launch context

The meta_x11_get_display_name() will return our private connection, which
is not what we want to transfer to clients being launched.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/945
This commit is contained in:
Carlos Garnacho 2019-11-14 23:50:30 +01:00 committed by Carlos Garnacho
parent 39a8c047d1
commit 38e58b837b

View File

@ -114,7 +114,7 @@ meta_launch_context_constructed (GObject *object)
G_OBJECT_CLASS (meta_launch_context_parent_class)->constructed (object);
x11_display = meta_x11_get_display_name ();
x11_display = getenv ("DISPLAY");
wayland_display = getenv ("WAYLAND_DISPLAY");
if (x11_display)