From b9924f89fade35d7900ca7cb99b5b3617f058af7 Mon Sep 17 00:00:00 2001 From: jackhou Date: Tue, 28 Oct 2014 21:56:14 -0700 Subject: [PATCH] [Win] Make drawAttention on shaped windows only flash taskbar icon. Flashing the icon and title bar on a shaped window causes the window to flicker (see bug). Shaped windows have no title bar anyway, so just flash the taskbar icon. BUG=426283 Review URL: https://codereview.chromium.org/688473004 Cr-Commit-Position: refs/heads/master@{#301787} --- ui/views/win/hwnd_message_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc index 43398be99a71..08e337f7ac4c 100644 --- a/ui/views/win/hwnd_message_handler.cc +++ b/ui/views/win/hwnd_message_handler.cc @@ -734,7 +734,7 @@ void HWNDMessageHandler::FlashFrame(bool flash) { fwi.cbSize = sizeof(fwi); fwi.hwnd = hwnd(); if (flash) { - fwi.dwFlags = FLASHW_ALL; + fwi.dwFlags = custom_window_region_ ? FLASHW_TRAY : FLASHW_ALL; fwi.uCount = 4; fwi.dwTimeout = 0; } else { -- 2.11.4.GIT