Piotr Caban : user32: Depend on SetWindowPos to refresh window manager hints in SetWindowRgn.
Module: wine Branch: master Commit: a1ca90d68abf5649de0abeb3dfdf1a1666f5f5c4 URL: https://source.winehq.org/git/wine.git/?a=commit;h=a1ca90d68abf5649de0abeb3d... Author: Piotr Caban <piotr(a)codeweavers.com> Date: Thu May 27 17:06:24 2021 +0200 user32: Depend on SetWindowPos to refresh window manager hints in SetWindowRgn. Otherwise both on Linux and Mac, the window will not restore title bar when it becomes non-shaped until it's e.g. moved. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/winpos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c index 9ac8bedfd09..6e96a4b5964 100644 --- a/dlls/user32/winpos.c +++ b/dlls/user32/winpos.c @@ -217,8 +217,8 @@ int WINAPI SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL bRedraw ) { UINT swp_flags = SWP_NOSIZE|SWP_NOMOVE|SWP_NOZORDER|SWP_NOACTIVATE|SWP_FRAMECHANGED|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE; if (!bRedraw) swp_flags |= SWP_NOREDRAW; - SetWindowPos( hwnd, 0, 0, 0, 0, 0, swp_flags ); USER_Driver->pSetWindowRgn( hwnd, hrgn, bRedraw ); + SetWindowPos( hwnd, 0, 0, 0, 0, 0, swp_flags ); if (hrgn) DeleteObject( hrgn ); } return ret;
participants (1)
-
Alexandre Julliard