changeset 18074:06e42aa4c208

(process_expose_from_menu, XTread_socket): Set has_been_visible field. (x_make_frame_visible): Don't do XMoveWindow unles has_been_visible.
author Richard M. Stallman <rms@gnu.org>
date Sat, 31 May 1997 07:37:09 +0000
parents 460d5452a852
children 0e7d01cc4fa8
files src/xterm.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat May 31 07:32:47 1997 +0000
+++ b/src/xterm.c	Sat May 31 07:37:09 1997 +0000
@@ -3522,6 +3522,7 @@
 	{
 	  f->async_visible = 1;
 	  f->async_iconified = 0;
+	  f->output_data.x->has_been_visible = 1;
 	  SET_FRAME_GARBAGED (f);
 	}
       else
@@ -3956,6 +3957,7 @@
 		    {
 		      f->async_visible = 1;
 		      f->async_iconified = 0;
+		      f->output_data.x->has_been_visible = 1;
 		      SET_FRAME_GARBAGED (f);
 		    }
 		  else
@@ -4036,6 +4038,7 @@
 		{
 		  f->async_visible = 1;
 		  f->async_iconified = 0;
+		  f->output_data.x->has_been_visible = 1;
 
 		  /* wait_reading_process_input will notice this and update
 		     the frame's display structures.  */
@@ -5676,7 +5679,8 @@
        that is 3 pixels too low.  Perhaps that's really the border width.  */
 
     if (! FRAME_VISIBLE_P (f)
-	&& f->output_data.x->win_gravity == NorthWestGravity)
+	&& f->output_data.x->win_gravity == NorthWestGravity
+	&& f->output_data.x->has_been_visible)
       {
 	BLOCK_INPUT;