Commit a1ca90d6 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

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: 's avatarPiotr Caban <piotr@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a5ed207a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment