On Thu Jun 6 10:56:55 2024 +0000, Alexandre Julliard wrote:
A better way would be to prevent the window manager from messing with disabled windows, but of course that's not always possible.
We have plenty of cases when Delphi-created applications use WS_DISABLED for its windows and expect that WM won't activate/change their Z-order: https://bugs.winehq.org/show_bug.cgi?id=26503
It seems that X11/WM spec don't allow such a restriction on managed windows, so we have to take that into an account.
Clearly it's not acceptable to ignore a WM event and get window state lost, so I'd suggest to accept this patch and watch for the possible regressions.