changeset 22059:23fda104cd36

(w32_ring_bell): Flash window correctly.
author Geoff Voelker <voelker@cs.washington.edu>
date Thu, 14 May 1998 05:16:54 +0000
parents 8299c71438c4
children 530d5f35aa4e
files src/w32term.c
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32term.c	Thu May 14 04:58:47 1998 +0000
+++ b/src/w32term.c	Thu May 14 05:16:54 1998 +0000
@@ -836,7 +836,17 @@
   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 ();