Commit d4b2865e authored by Arkadiusz Hiler's avatar Arkadiusz Hiler Committed by Alexandre Julliard

win32u: Don't affect nonclient area unless requested.

The state of the caption / nonclient area should be only changed when FLASHW_CAPTION or FLASHW_STOP are used.
parent d291f404
......@@ -4511,11 +4511,11 @@ BOOL WINAPI NtUserFlashWindowEx( FLASHWINFO *info )
win = get_win_ptr( info->hwnd );
if (!win || win == WND_OTHER_PROCESS || win == WND_DESKTOP) return FALSE;
if (info->dwFlags && !(win->flags & WIN_NCACTIVATED))
if (info->dwFlags & FLASHW_CAPTION && !(win->flags & WIN_NCACTIVATED))
{
win->flags |= WIN_NCACTIVATED;
}
else
else if (!info->dwFlags)
{
win->flags &= ~WIN_NCACTIVATED;
}
......@@ -4536,7 +4536,10 @@ BOOL WINAPI NtUserFlashWindowEx( FLASHWINFO *info )
else wparam = (hwnd == NtUserGetForegroundWindow());
release_win_ptr( win );
if (!info->dwFlags || info->dwFlags & FLASHW_CAPTION)
send_message( hwnd, WM_NCACTIVATE, wparam, 0 );
user_driver->pFlashWindowEx( info );
return wparam;
}
......
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