win: Fixes stopping FlashFrame, closes #906
This commit is contained in:
parent
d50eeb04d5
commit
cb911b19dd
1 changed files with 12 additions and 0 deletions
|
@ -489,6 +489,18 @@ std::string NativeWindowViews::GetTitle() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowViews::FlashFrame(bool flash) {
|
void NativeWindowViews::FlashFrame(bool flash) {
|
||||||
|
#if defined(OS_WIN)
|
||||||
|
// The Chromium's implementation has a bug stopping flash.
|
||||||
|
if (!flash) {
|
||||||
|
FLASHWINFO fwi;
|
||||||
|
fwi.cbSize = sizeof(fwi);
|
||||||
|
fwi.hwnd = GetAcceleratedWidget();
|
||||||
|
fwi.dwFlags = FLASHW_STOP;
|
||||||
|
fwi.uCount = 0;
|
||||||
|
FlashWindowEx(&fwi);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
window_->FlashFrame(flash);
|
window_->FlashFrame(flash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue