Include blockinput.h.
authorRichard M. Stallman <rms@gnu.org>
Fri, 26 Apr 1996 15:45:46 +0000 (15:45 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 26 Apr 1996 15:45:46 +0000 (15:45 +0000)
(change_frame_size_1): Block input around the real work.

src/dispnew.c

index 165a5dc..b4f27f3 100644 (file)
@@ -2130,8 +2130,6 @@ change_frame_size_1 (frame, newheight, newwidth, pretend, delay)
       return;
     }
 
-  BLOCK_INPUT;
-
   /* This size-change overrides any pending one for this frame.  */
   FRAME_NEW_HEIGHT (frame) = 0;
   FRAME_NEW_WIDTH  (frame) = 0;
@@ -2148,6 +2146,8 @@ change_frame_size_1 (frame, newheight, newwidth, pretend, delay)
       && newwidth == FRAME_WIDTH (frame))
     return;
 
+  BLOCK_INPUT;
+
 #ifdef MSDOS
   /* We only can set screen dimensions to certain values supported
      by our video hardware.  Try to find the smallest size greater