https://bugs.winehq.org/show_bug.cgi?id=55810
--- Comment #15 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Zhiyi Zhang from comment #14)
Created attachment 75820 [details] patch
Please try this patch and see if it fixes the original bug. I can only reproduce the steam window not being centered bug while virtual desktop is on.
Applying your patch on 9.0-rc3 seems to fix the problem pretty well, thank you for that.
The problem is that commit 790133e95036597092443b30c0fe0aa6a40a9167 makes all the tests inconclusive when using a VD: sometimes your patch works but most of the times it just results the original problem. I tried with numerous Steam client restarts between the tests. Either commit 790133e95 has some ill side effects when using a VD (at least when running games from Steam client) or your patch needs some refinement. In any case, thanks for your work.