From dfc7a531dbf9210557ca1b1879bee6dcf038d901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 17 Nov 2017 20:07:18 +0100 Subject: [PATCH] wayland: Never send NULL app id The old gdk_get_program_class was never returning NULL, but g_get_prgname might. So use the same fallback app id name we were using before. --- gdk/wayland/gdkwindow-wayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index 1ae53ad975..224c6420f5 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -1473,6 +1473,9 @@ gdk_wayland_window_create_xdg_toplevel (GdkWindow *window) app_id = g_get_prgname (); + if (app_id == NULL) + app_id = "GTK+ Application"; + zxdg_toplevel_v6_set_app_id (impl->display_server.xdg_toplevel, app_id); maybe_set_gtk_surface_dbus_properties (window);