On Tue Feb 13 20:32:49 2024 +0000, Gabriel Ivăncescu wrote:
Looks like the issue is that X11DRV_SystrayDockInsert is called before we make the window layered. Though I'm not sure how to fix this properly, because we check the return value of it first before setting it to layered. I tried to make all icons layered but unfortunately that doesn't work for the Wine systray and I've no idea why (not familiar with this code).
What about adding:
```C /* make sure the window is layered with a surface before embedding them */ NtUserUpdateLayeredWindow( hwnd, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL ); ```
In `X11DRV_SystrayDockInsert`, after `get_systray_selection_owner`? (no idea if that works)