On Tue Feb 13 19:38:43 2024 +0000, Gabriel Ivăncescu wrote:
It's broken on XFCE for some reason, the icon simply doesn't show up. (reported by Alistair on wine-staging with Steam and I tested it) It's not Steam specific, I could repro it with Winamp (shift + click minimize moves it to systray) and AutoHotkey on XFCE. Of course, this is *without* virtual desktop.
Okay well I think it would be better to figure out what is going on, and find how to fix it properly then.
Your previous change looked right, as the icons were created with the layered attribute but then never painted as layered windows (`UpdateLayeredWindow` was never called because icon->layered is FALSE unless they are docked).
Yet, it was also working for me before, because somehow even with that attribute the windows can be painted normally, but I think it's better to only set the style if the windows are layered and going to be painted with `UpdateLayeredWindow`.
Alternatively, if you can make the layered icons work for all the cases it might also make the code simpler. `UpdateLayeredWindow` is required for windows embedded in the host systray, it's not required for embedding in Wine systray or taskbar but maybe it could work.