https://bugs.winehq.org/show_bug.cgi?id=45245
--- Comment #1 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Eike Hein from comment #0)
However, we've recently noticed that wine .desktop files installed in /usr and presumably pre-generated/bundled haven't been updated in the same way. For example, `wine-notepad.desktop` doesn't contain StartupWMClass=notepad.exe, so the integration doesn't work there.
I don't think those files are part of plain Wine, what specific package are you using?