The workaround to avoid breaking Cinnamon / Muffin caused some logic change, where GetWindowStateUpdates started returning the previously active window as foreground, as there's no _NET_ACTIVE_WINDOW pending request being recorded anymore. If GetWindowStateUpdates gets called after the window activation request but before its mapping is requested from WindowStateChanged, it would change the Win32 foreground window too, causing spurious focus loss. Fixes: c8422a619b46d25e55907fd5526b1d9fae8c3943 This was actually caught in the original MR with some ddraw tests, and it is more generally causing failures in the nightly test runs. We can alternatively revert the change, as this is arguably a Muffin bug that other WMs don't suffer from. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9807