Description: Fix application icon under Wayland using g_set_prgname
 Denemo’s application icon fails to load under Wayland after the change
 of the application ID from "denemo" to "org.denemo.Denemo".  It can be
 fixed in GTK 3 by using g_set_prgname to specify the application ID.
 .
 See https://honk.sigxcpu.org/con/GTK__and_the_application_id.html
 for a very well-written and helpful explanation.
Author: Anthony Fok <foka@debian.org>
Origin: vendor
Last-Update: 2022-06-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -438,6 +438,10 @@
   if(!(gtk_status = gtk_init_check (&argc, &argv)))
     g_message(_("Could not start graphical interface."));
 
+  /* Ensure the correct application icon is displayed with GTK3 under Wayland.
+   * See https://honk.sigxcpu.org/con/GTK__and_the_application_id.html */
+  g_set_prgname ("org.denemo.Denemo");
+
   files = process_command_line (argc, argv, gtk_status);
 
   /* initialization of directory relocatability */
