e4a14b8c
by Rémi Bernon at 2025-12-22T13:10:55+01:00
winex11: Set net_active_window_serial when activating withdrawn windows.
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