winex11.drv: Update _NET_WM_STATE before resizing windows.
commitc69bb0342ca5e2b30f542ad4e61ae6bc404f22a1
authorZhiyi Zhang <zzhang@codeweavers.com>
Thu, 7 May 2020 08:17:28 +0000 (7 16:17 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 7 May 2020 18:13:16 +0000 (7 20:13 +0200)
tree5df845cebceeb4736d7a211e1201414515c1e2d5
parent36b720357bcaf0a1e625f488e0c981ce10e8affa
winex11.drv: Update _NET_WM_STATE before resizing windows.

According to the Extended Window Manager Hints (EWMH) spec 1.3 regarding
_NET_WM_STATE_FULLSCREEN, "the Window Manager is responsible for
restoring the original geometry after a switch from fullscreen back to
normal window.", which means that removing _NET_WM_STATE_FULLSCREEN from
a window may cause the window to receive a ConfigureNotify event to
restore the window size, thus causing a application resize action to be
overwritten by the window managers.

Fix a game called Mugsters becomes maximized after exiting full screen.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/user32/tests/win.c
dlls/winex11.drv/window.c