https://bugs.winehq.org/show_bug.cgi?id=40828
--- Comment #22 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (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.
You may replace lines 920-926 with a simple assignment:
fullscreen = is_window_fullscreen( G... );
One of the ifs in the 'if true&!call else if false&call' construct will call the function anyway, so you may just as well call the function and catch the result in the variable.