]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_set_offset): Turn off the code that added the border_width
authorRichard M. Stallman <rms@gnu.org>
Sun, 20 Apr 1997 22:14:53 +0000 (22:14 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 20 Apr 1997 22:14:53 +0000 (22:14 +0000)
to modified_left and modified_top; it seems incorrect to do that.

src/xterm.c

index de6b336db5363dc985f97ff5d83697d8664079da..ef7c17d042dd12e14b8d27c6f03e978ad2660050 100644 (file)
@@ -4033,7 +4033,7 @@ XTread_socket (sd, bufp, numchars, expected)
                      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 @@ x_set_offset (f, xoff, yoff, change_gravity)
   BLOCK_INPUT;
   x_wm_set_size_hint (f, (long) 0, 0);
 
-  /* 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 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.  */
   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),