winex11.drv: Always update _NET_WM_STATE in update_net_wm_states().
commitc5ec1585f6e5211a2b63e3435748210552250534
authorZhiyi Zhang <zzhang@codeweavers.com>
Tue, 25 Aug 2020 07:20:39 +0000 (25 15:20 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 26 Aug 2020 09:09:05 +0000 (26 11:09 +0200)
tree312181809c642938d75868fd6daa2870ad5f1dfc
parentf04360cfbec574dc37675df141ef8fc14e1302ba
winex11.drv: Always update _NET_WM_STATE in update_net_wm_states().

KWin treats a window covering exactly the whole monitor as maximized
when handling its first map request and expects applications to update
maximized state later. Wine doesn't know about this added maximized
state and expect it unchanged, making the window always maximized
as far as KWin is concerned. So always send _NET_WM_STATE updates
even if Wine doesn't expect changes to hint KWin that a window should
not be maximized.

Fix test failures when running the tests introduced by
36b720357bcaf0a1e625f488e0c981ce10e8affa with KWin.

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