12669b76
by Rémi Bernon at 2025-05-27T16:05:45+02:00
winex11: Wait for decoration change side effects before changing focus.
Mutter and related window managers use a parent X window frame, and
temporarily unmap windows when their decoration is switched on/off.
This triggers an Unmap > FocusOut > Reparent > Map > FocusIn event
sequence, which we need to ignore in order to keep focus unchanged.
If we were wrong about it, the WM_STATE property should then change as
well, and we will eventually post a WM_WINE_WINDOW_STATE_CHANGED message
again and have another chance at changing the foreground window.