forked from AuroraMiddleware/gtk
wayland: Make gdk_display_get_name work
It should just return the same as gdk_screen_make_display_name.
This commit is contained in:
parent
309c6dfaf8
commit
55ea6e4dcc
@ -606,7 +606,13 @@ gdk_wayland_display_finalize (GObject *object)
|
|||||||
static const gchar *
|
static const gchar *
|
||||||
gdk_wayland_display_get_name (GdkDisplay *display)
|
gdk_wayland_display_get_name (GdkDisplay *display)
|
||||||
{
|
{
|
||||||
return "Wayland";
|
const gchar *name;
|
||||||
|
|
||||||
|
name = g_getenv ("WAYLAND_DISPLAY");
|
||||||
|
if (name == NULL)
|
||||||
|
name = "wayland-0";
|
||||||
|
|
||||||
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GdkScreen *
|
static GdkScreen *
|
||||||
|
@ -171,13 +171,7 @@ gdk_wayland_screen_is_composited (GdkScreen *screen)
|
|||||||
static gchar *
|
static gchar *
|
||||||
gdk_wayland_screen_make_display_name (GdkScreen *screen)
|
gdk_wayland_screen_make_display_name (GdkScreen *screen)
|
||||||
{
|
{
|
||||||
const gchar *name;
|
return g_strdup (gdk_display_get_name (GDK_WAYLAND_SCREEN (screen)->display));
|
||||||
|
|
||||||
name = g_getenv ("WAYLAND_DISPLAY");
|
|
||||||
if (name == NULL)
|
|
||||||
name = "wayland-0";
|
|
||||||
|
|
||||||
return g_strdup (name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static GdkWindow *
|
static GdkWindow *
|
||||||
|
Loading…
Reference in New Issue
Block a user