https://bugs.winehq.org/show_bug.cgi?id=57538
--- Comment #6 from Artem S. Tashkinov aros@gmx.com --- (In reply to tenchrio from comment #5)
Issue does not occur in KDE and Gnome(both X11 and wayland for gnome).
While it does occur in XFCE the problem seems to stem from the XFCE Status Tray which doesn't respond to any refresh commands (I tried, using XSync, XFlush, and XClearWindow in the SystrayDockClear and even get_systray_visual_info functions, none had effect on the icon).
However in XFCE opening the Status Tray Items configuration and enabling "Adjust Size Automatically" solves the issue entirely even on repeat cases of sending the programs to systray.
Thanks a ton for your investigation. I've enabled "Adjust Size Automatically" but sadly it hasn't helped. The issue persists.
Using XFCE this way:
DPI: 106 Panel row size: 32 Status Tray Items -> Enable Square Items and Adjust size automatically. Everything else is disabled.
Maybe I should poke XFCE developers instead?