changeset 17519:5aa7011aa3d5

(x_set_offset): Turn off the code that added the border_width to modified_left and modified_top; it seems incorrect to do that.
author Richard M. Stallman <rms@gnu.org>
date Sun, 20 Apr 1997 22:14:53 +0000
parents 1eecbe9dd89c
children f33d7729b6a1
files src/xterm.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sun Apr 20 21:02:06 1997 +0000
+++ b/src/xterm.c	Sun Apr 20 22:14:53 1997 +0000
@@ -4033,7 +4033,7 @@
 		      count++;
 		      numchars--;
 		    }
-		  else if (! NILP(Vframe_list)
+		  else if (! NILP (Vframe_list)
 			   && ! NILP (XCONS (Vframe_list)->cdr))
 		    /* Force a redisplay sooner or later
 		       to update the frame titles
@@ -5336,15 +5336,18 @@
   BLOCK_INPUT;
   x_wm_set_size_hint (f, (long) 0, 0);
 
+  modified_left = f->output_data.x->left_pos;
+  modified_top = f->output_data.x->top_pos;
+#if 0 /* Running on psilocin (Debian), and displaying on the NCD X-terminal,
+	 this seems to be unnecessary and incorrect.  rms, 4/17/97.  */
   /* It is a mystery why we need to add the border_width here
      when the frame is already visible, but experiment says we do.  */
-  modified_left = f->output_data.x->left_pos;
-  modified_top = f->output_data.x->top_pos;
   if (change_gravity != 0)
     {
       modified_left += f->output_data.x->border_width;
       modified_top += f->output_data.x->border_width;
     }
+#endif
 
 #ifdef USE_X_TOOLKIT
   XMoveWindow (FRAME_X_DISPLAY (f), XtWindow (f->output_data.x->widget),