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.
This commit is contained in:
Timm Bäder 2017-11-17 20:07:18 +01:00
parent 34e233e1c3
commit dfc7a531db

View File

@ -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);