https://bugs.winehq.org/show_bug.cgi?id=27032
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WORKSFORME Status|UNCONFIRMED |RESOLVED
--- Comment #11 from François Gouget fgouget@codeweavers.com --- This works.
First the windows get proper icons in the _NET_WM_ICON property which allows them to show up correctly in Alt-Tab.
Then as far as matching application windows with the proper entry in the GNOME favorites Wine still WM_CLASS as follows (e.g. for Notepad++):
WM_CLASS(STRING) = "notepad++.exe", "Wine"
But the .desktop files now sets StartupWMClass to match as per the Startup Notification:
StartupNotify=true StartupWMClass=notepad++.exe
StartupNotify indicates that the Startup Notification protocol is supported (Wine does support it) and StartupWMClass indicates that a window with either the WM class or WM name property set to "notepad++.exe" should be matched to this desktop file. From the Startup Notification specification:
https://specifications.freedesktop.org/startup-notification-spec/startup-not...
| StartupWMClass=STRING | | If true, it is KNOWN that the application will map at least one | window with the given string as its WM class or WM name hint.
With this GNOME can and does match the window to the proper icon in the dock / application favorites list.
I confirmed this in Ubuntu 19.10, 18.04 and Debian 9 (all GNOME).