From: 
Subject: Debian changes

The Debian packaging of swisswatch is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/swisswatch
    % cd swisswatch
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone swisswatch`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/ChangeLog b/ChangeLog
index f568f89..197b4d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-05-30  Barak A. Pearlmutter  <barak.pearlmutter@gmail.com>
+
+	* org.debian.swisswatch.desktop: rename from swisswatch.desktop so
+	GNOME Shell can match the running app (whose GtkApplication ID is
+	org.debian.swisswatch) to the desktop entry on Wayland; add
+	StartupWMClass=Swisswatch for X11 compatibility.
+
+	* Makefile.am (dist_desktop_DATA): reference renamed desktop file.
+
 2026-05-21  Barak A. Pearlmutter  <barak.pearlmutter@gmail.com>
 
 	* swisswatch.c (cycle_face): new function; n/N key cycles through all
diff --git a/Makefile.am b/Makefile.am
index f1644ae..e184be7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,7 +25,7 @@ man_MANS = swisswatch.1
 CLEANFILES = swisswatch.1 swisswatch_resources.c
 
 desktopdir = $(datadir)/applications
-dist_desktop_DATA = swisswatch.desktop
+dist_desktop_DATA = org.debian.swisswatch.desktop
 
 iconsdir = $(datadir)/icons/hicolor/scalable/apps
 dist_icons_DATA = swisswatch.svg
diff --git a/swisswatch.desktop b/org.debian.swisswatch.desktop
similarity index 90%
rename from swisswatch.desktop
rename to org.debian.swisswatch.desktop
index b3f6f5b..e665e8f 100644
--- a/swisswatch.desktop
+++ b/org.debian.swisswatch.desktop
@@ -9,3 +9,4 @@ Categories=Utility;
 Keywords=clock;time;analog;swiss;railway;sbb;cff;ffs;
 Terminal=false
 StartupNotify=false
+StartupWMClass=Swisswatch
