diff src/event-msw.c @ 707:a307f9a2021d

[xemacs-hg @ 2001-12-20 05:49:28 by andyp] sync with 21-4-6-windows
author andyp
date Thu, 20 Dec 2001 05:49:48 +0000
parents 685b588e92d8
children 46d76bae9921
line wrap: on
line diff
--- a/src/event-msw.c	Wed Dec 19 00:40:26 2001 +0000
+++ b/src/event-msw.c	Thu Dec 20 05:49:48 2001 +0000
@@ -2630,13 +2630,11 @@
 	  }
 	else if (IsWindowVisible (hwnd))
 	  {
-            /*
-               APA: It's too early here to set the frame visible.
-               Let's do this later, in WM_SIZE processing, after the
-               magic XM_MAPFRAME event has been sent (just like 21.1
-               did).
-            */
-            /* FRAME_VISIBLE_P (frame) = 1; */
+	    /* APA: It's too early here to set the frame visible.
+	     * Let's do this later, in WM_SIZE processing, after the
+	     * magic XM_MAPFRAME event has been sent (just like 21.1
+	     * did). */
+	    /* FRAME_VISIBLE_P (frame) = 1; */
 	    FRAME_ICONIFIED_P (frame) = 0;
 	  }
 	else
@@ -2701,12 +2699,10 @@
 		{
 		  if (!msframe->sizing && !FRAME_VISIBLE_P (frame))
 		    mswindows_enqueue_magic_event (hwnd, XM_MAPFRAME);
-                  /*
-                     APA: Now that the magic XM_MAPFRAME event has
-                     been sent we can mark the frame as visible (just
-                     like 21.1 did).
-                  */
-                  FRAME_VISIBLE_P (frame) = 1;
+		  /* APA: Now that the magic XM_MAPFRAME event has
+		   * been sent we can mark the frame as visible (just
+		   * like 21.1 did). */
+		  FRAME_VISIBLE_P (frame) = 1;
 
 		  if (!msframe->sizing || mswindows_dynamic_frame_resize)
 		    redisplay ();
@@ -2829,20 +2825,14 @@
       {
 	int keys = LOWORD (wParam); /* Modifier key flags */
 	int delta = (short) HIWORD (wParam); /* Wheel rotation amount */
-	struct gcpro gcpro1, gcpro2;
 
 	if (mswindows_handle_mousewheel_event (mswindows_find_frame (hwnd),
 					       keys, delta,
 					       MAKEPOINTS (lParam)))
-	  {
-	    GCPRO2 (emacs_event, fobj);
-	    if (UNBOUNDP(mswindows_pump_outstanding_events ()))	/* Can GC */
-	      SendMessage (hwnd, WM_CANCELMODE, 0, 0);
-	    UNGCPRO;
-	  }
+	  /* We are not in a modal loop so no pumping is necessary. */
+	  break;
 	else
 	  goto defproc;
-	break;
       }
 #endif