Commit 7d87eebf authored by Matthias Clasen's avatar Matthias Clasen

wayland: Return a display name

Make gdk_screen_make_display_name() return a likely correct
name for the Wayland socket we are using.
parent 55edc81c
......@@ -301,7 +301,13 @@ gdk_wayland_screen_is_composited (GdkScreen *screen)
static gchar *
gdk_wayland_screen_make_display_name (GdkScreen *screen)
{
return NULL;
const gchar *name;
name = g_getenv ("WAYLAND_DISPLAY");
if (name == NULL)
name = "wayland-0";
return g_strdup (name);
}
static GdkWindow *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment