[gtk+] wayland: Tag the event source with the acutal display name



commit a829b26de1b6e399c1ce3430fbeb191770e709f3
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun May 1 10:52:31 2016 -0400

    wayland: Tag the event source with the acutal display name

 gdk/wayland/gdkeventsource.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkeventsource.c b/gdk/wayland/gdkeventsource.c
index dcd10a1..bb22e00 100644
--- a/gdk/wayland/gdkeventsource.c
+++ b/gdk/wayland/gdkeventsource.c
@@ -131,7 +131,8 @@ _gdk_wayland_display_event_source_new (GdkDisplay *display)
 
   source = g_source_new (&wl_glib_source_funcs,
                         sizeof (GdkWaylandEventSource));
-  name = g_strdup_printf ("GDK Wayland Event source (%s)", "display name");
+  name = g_strdup_printf ("GDK Wayland Event source (%s)",
+                          gdk_display_get_name (display));
   g_source_set_name (source, name);
   g_free (name);
   wl_source = (GdkWaylandEventSource *) source;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]