WM_CLASS forcing title case on Xorg
The second WM_CLASS given by xprop
seems to force title case on binary names, which are not the same of the effective process name in a case insensitive OS like Linux. This causes third party programs like ActivityWatch to give wrong statistics about app usage data.
Some examples below:
WM_CLASS(STRING) = "google-chrome", "Google-chrome"
WM_CLASS(STRING) = "gnome-terminal-server", "Gnome-terminal"
WM_CLASS(STRING) = "gnome-screenshot", "Gnome-screenshot"
WM_CLASS(STRING) = "org.gnome.MusicDevel", "Gnome-music"
The forced title-case transformation happens here: https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-24/gdk/gdk.c#L305