Alexandre Julliard pushed to branch master at wine / wine
Commits: 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.
- - - - -
3 changed files:
- dlls/winex11.drv/event.c - dlls/winex11.drv/window.c - dlls/winex11.drv/x11drv.h
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/12669b76f06b69c4301cdcae2c62025...