changeset 25153:fc8435c2ae0e

(x_set_internal_border_width): Call do_pending_window_change. Don't block input, don't call XFlush. (x_set_vertical_scroll_bars): Call do_pending_window_change. (x_set_scroll_bar_width, x_set_font): Likewise.
author Richard M. Stallman <rms@gnu.org>
date Mon, 02 Aug 1999 00:10:19 +0000
parents 1e90b09cc90e
children 4c873bb645d8
files src/xfns.c
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Mon Aug 02 00:01:27 1999 +0000
+++ b/src/xfns.c	Mon Aug 02 00:10:19 1999 +0000
@@ -1753,6 +1753,8 @@
   else
     abort ();
 
+  do_pending_window_change ();
+
   /* Don't call `face-set-after-frame-default' when faces haven't been
      initialized yet.  This is the case when called from
      Fx_create_frame.  In that case, the X widget or window doesn't
@@ -1803,14 +1805,9 @@
 
   if (FRAME_X_WINDOW (f) != 0)
     {
-      BLOCK_INPUT;
       x_set_window_size (f, 0, f->width, f->height);
-#if 0
-      x_set_resize_hint (f);
-#endif
-      XFlush (FRAME_X_DISPLAY (f));
-      UNBLOCK_INPUT;
       SET_FRAME_GARBAGED (f);
+      do_pending_window_change ();
     }
 }
 
@@ -2228,6 +2225,7 @@
 	 call x_set_window_size.  */
       if (FRAME_X_WINDOW (f))
 	x_set_window_size (f, 0, FRAME_WIDTH (f), FRAME_HEIGHT (f));
+      do_pending_window_change ();
     }
 }
 
@@ -2257,6 +2255,7 @@
 
       if (FRAME_X_WINDOW (f))
         x_set_window_size (f, 0, FRAME_WIDTH (f), FRAME_HEIGHT (f));
+      do_pending_window_change ();
     }
   else if (INTEGERP (arg) && XINT (arg) > 0
 	   && XFASTINT (arg) != FRAME_SCROLL_BAR_PIXEL_WIDTH (f))