mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
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:
parent
34e233e1c3
commit
dfc7a531db
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user