diff options
author | Timm Bäder <mail@baedert.org> | 2017-11-17 20:07:18 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-12-01 07:30:25 +0100 |
commit | dfc7a531dbf9210557ca1b1879bee6dcf038d901 (patch) | |
tree | b1dd031fec7434f6d26bab95d995c3ab4f213ee0 /gdk | |
parent | 34e233e1c33adc2a53dd74cbfea1126d44deb771 (diff) | |
download | gtk+-dfc7a531dbf9210557ca1b1879bee6dcf038d901.tar.gz |
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.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/wayland/gdkwindow-wayland.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |