summaryrefslogtreecommitdiff
path: root/src/widget.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>1999-07-26 21:22:23 +0000
committerGerd Moellmann <gerd@gnu.org>1999-07-26 21:22:23 +0000
commit203ae5607eaa362c1501a6c0d0ddc21da6f61bce (patch)
tree277f34bb7a9fd7a1725a0725b0b6fd2f551b081b /src/widget.c
parent608369ba90e88abb9f788f8edfbf876df8582bef (diff)
downloademacs-203ae5607eaa362c1501a6c0d0ddc21da6f61bce.tar.gz
(EmacsFrameSetCharSize): Don't add XtNborderWidth
value to frame width and height.
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/widget.c b/src/widget.c
index 1d0cf995177..905c8738c5e 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -924,16 +924,18 @@ EmacsFrameSetCharSize (widget, columns, rows)
f->output_data.x->flags_areas_extra
= 2 * FRAME_FLAGS_AREA_WIDTH (f);
+ char_to_pixel_size (ew, columns, rows, &pixel_width, &pixel_height);
+
+#if 0 /* This doesn't seem to be right. The frame gets too wide. --gerd. */
/* Something is really strange here wrt to the border width:
Apparently, XtNwidth and XtNheight include the border, so we have
to add it here. But the XtNborderWidth set for the widgets has
no similarity to what f->output_data.x->border_width is set to. */
- char_to_pixel_size (ew, columns, rows, &pixel_width, &pixel_height);
-
XtVaGetValues (widget, XtNborderWidth, &border_width, NULL);
pixel_height += 2 * border_width;
pixel_width += 2 * border_width;
-
+#endif
+
/* Manually change the height and width of all our widgets,
adjusting each widget by the same increments. */
if (ew->core.width != pixel_width