]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32_ring_bell): Flash window correctly.
authorGeoff Voelker <voelker@cs.washington.edu>
Thu, 14 May 1998 05:16:54 +0000 (05:16 +0000)
committerGeoff Voelker <voelker@cs.washington.edu>
Thu, 14 May 1998 05:16:54 +0000 (05:16 +0000)
src/w32term.c

index 7a329964fe78a3569245df1029ac286c9b1929aa..b55c6c5d83d3cbffe0de14afb4f98fc8b1ffe277 100644 (file)
@@ -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 ();