summaryrefslogtreecommitdiff
path: root/gdk/wayland/gdkscreen-wayland.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-05-01 10:51:41 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-05-01 10:51:41 -0400
commit55ea6e4dcc4bbe6c7fc40c8e814ad2ee99b3b2e2 (patch)
tree66585ac83ccd9970196ce92abfca2161804d61a5 /gdk/wayland/gdkscreen-wayland.c
parent309c6dfaf8a081166e28e4109db96c2292151edd (diff)
downloadgtk+-55ea6e4dcc4bbe6c7fc40c8e814ad2ee99b3b2e2.tar.gz
wayland: Make gdk_display_get_name work
It should just return the same as gdk_screen_make_display_name.
Diffstat (limited to 'gdk/wayland/gdkscreen-wayland.c')
-rw-r--r--gdk/wayland/gdkscreen-wayland.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c
index ff2ab1910c..c72c155c6e 100644
--- a/gdk/wayland/gdkscreen-wayland.c
+++ b/gdk/wayland/gdkscreen-wayland.c
@@ -171,13 +171,7 @@ gdk_wayland_screen_is_composited (GdkScreen *screen)
static gchar *
gdk_wayland_screen_make_display_name (GdkScreen *screen)
{
- const gchar *name;
-
- name = g_getenv ("WAYLAND_DISPLAY");
- if (name == NULL)
- name = "wayland-0";
-
- return g_strdup (name);
+ return g_strdup (gdk_display_get_name (GDK_WAYLAND_SCREEN (screen)->display));
}
static GdkWindow *