summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/w32term.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 7a329964fe7..b55c6c5d83d 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -836,7 +836,17 @@ w32_ring_bell (void)
BLOCK_INPUT;
if (visible_bell)
- FlashWindow (FRAME_W32_WINDOW (selected_frame), TRUE);
+ {
+ int i;
+ HWND hwnd = FRAME_W32_WINDOW (selected_frame);
+
+ for (i = 0; i < 5; i++)
+ {
+ FlashWindow (hwnd, TRUE);
+ Sleep (10);
+ }
+ FlashWindow (hwnd, FALSE);
+ }
else
w32_sys_ring_bell ();