https://bugs.winehq.org/show_bug.cgi?id=40828
--- Comment #13 from Robert Walker bob.mt.wya@gmail.com --- (In reply to Hamish Claxton from comment #12)
Created attachment 63178 [details] systray: Hide systray for fullscreen games
Completely rewritten, compares foreground window against desktop window. Handles borderless fullscreen modes.
This latest patch (v4) certainly works with Aliens versus Predator Classic 2000. The game this issue was first reported against.
The latest patch also appears to be pretty robust. I can't think of any corner cases that would break it.
It would be nice to see the patch land in Wine 4.0 - since it affects a lot of games. The issue is technically a regression. Since it was introduced when the Virtual Desktop panel window was forced as topmost:
SetWindowPos( tray_window, HWND_TOPMOST, 0, GetSystemMetrics( SM_CYSCREEN ) - tray_height, tray_width, tray_height, SWP_NOACTIVATE | SWP_SHOWWINDOW );
with Wine 1.9.11.