https://bugs.winehq.org/show_bug.cgi?id=56764
--- Comment #3 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Rémi Bernon from comment #2)
Actually I think https://gitlab.winehq.org/wine/wine/-/merge_requests/5786 should fix it.
The patch fixes the problem in Empire Earth, thank you. Also works for Cossacks: European Wars which shows a similar issue since 4573910acc.
There may be other cases where commit 4573910acc causes a problem when a virtual desktop is used and your fix doesn't work, but I suspect they need a separate bug report (after this MR was merged in).