mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
x11: Add meta_x11_get_display_name() function
Instead of poking the DISPLAY envvar at places. https://gitlab.gnome.org/GNOME/mutter/merge_requests/709
This commit is contained in:

committed by
Carlos Garnacho

parent
79b5ece241
commit
9109fa0eb8
@ -114,7 +114,7 @@ meta_launch_context_constructed (GObject *object)
|
||||
|
||||
G_OBJECT_CLASS (meta_launch_context_parent_class)->constructed (object);
|
||||
|
||||
x11_display = getenv ("DISPLAY");
|
||||
x11_display = meta_x11_get_display_name ();
|
||||
wayland_display = getenv ("WAYLAND_DISPLAY");
|
||||
|
||||
if (x11_display)
|
||||
|
Reference in New Issue
Block a user