https://bugs.winehq.org/show_bug.cgi?id=56073
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com
--- Comment #7 from Rémi Bernon rbernon@codeweavers.com --- I don't think the blamed commit is wrong. This is caused however by some bug in our focus / foreground window implementation.
Unity creates a window then shows it with SWP_NOACTIVATE, and later sets focus on it with SetFocus. That SetFocus call is supposed to activate and give foreground to the window process, but this is not implemented in Wine.
We don't implement SWP_NOACTIVATE when window manager is handling the focus, so without the virtual desktop mode, we give foreground to the window as soon as it is shown, and it hides the issue.
This will be very tricky to fix properly, but I think we can have a workaround to set foreground in SetFocus when the desktop window is currently focused, which should address the issues with the Unity games suffering from it as long as the game is started alone in the virtual desktop environment.