Commit 72ec8963 authored by Guido Günther's avatar Guido Günther
Browse files

gdk: Use application_id as xdg_shell's app_id if available

This (manually) reverts commit e1fd8772

This makes sure xdg_shell's app_id matches the DBus name of the the
appliation when using GtkApplication. It also allows the compositor to
derive the desktop file ID from the app_id:

Closes #653
parent 50d5666d
......@@ -1515,7 +1515,9 @@ gdk_wayland_surface_create_xdg_toplevel (GdkSurface *surface)
impl->initial_fullscreen_output = NULL;
app_id = g_get_prgname ();
app_id = impl->application.application_id;
if (app_id == NULL)
app_id = g_get_prgname ();
if (app_id == NULL)
app_id = "GTK+ Application";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment