diff options
author | Gerd Moellmann <gerd@gnu.org> | 1999-07-26 21:22:23 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 1999-07-26 21:22:23 +0000 |
commit | cc4fb2128e276a3075060a24f20fbd9aa9b1df1a (patch) | |
tree | eb5e22c7e8504e802578d804c34111f792199527 /src/widget.c | |
parent | 1a6da391eb3ced7363b979451ec53b8a042622d6 (diff) | |
download | emacs-cc4fb2128e276a3075060a24f20fbd9aa9b1df1a.tar.gz |
(EmacsFrameSetCharSize): Don't add XtNborderWidth
value to frame width and height.
Diffstat (limited to 'src/widget.c')
-rw-r--r-- | src/widget.c | 8 |
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 |