diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-09-23 04:40:39 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-09-23 04:40:39 +0000 |
commit | 01d0389c3178a10a99c1a7a5886c1d5ea3580afd (patch) | |
tree | 67d0185f5b559f655a7afddeb0ef77b6407f9f1f | |
parent | c6642267f7aeaed95dc0b9b112acdb1e51a5c960 (diff) | |
download | emacs-01d0389c3178a10a99c1a7a5886c1d5ea3580afd.tar.gz |
(EmacsFrameSetValues): Copy internal_border_width
from the Emacs frame if caller isn't changing it.
-rw-r--r-- | src/widget.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/widget.c b/src/widget.c index ae5159ad3cb..b9dfe47a3a5 100644 --- a/src/widget.c +++ b/src/widget.c @@ -796,6 +796,7 @@ EmacsFrameSetValues (cur_widget, req_widget, new_widget, dum1, dum2) Boolean has_to_recompute_size; Boolean has_to_recompute_gcs; Boolean has_to_update_hints; + Boolean has_to_update_internal_border_width; int char_width, char_height; Dimension pixel_width; @@ -814,6 +815,10 @@ EmacsFrameSetValues (cur_widget, req_widget, new_widget, dum1, dum2) has_to_update_hints = (cur->emacs_frame.font != new->emacs_frame.font); + has_to_update_internal_border_width + = (cur->emacs_frame.internal_border_width + != new->emacs_frame.internal_border_width); + if (has_to_recompute_gcs) { setup_frame_gcs (new); @@ -839,6 +844,12 @@ EmacsFrameSetValues (cur_widget, req_widget, new_widget, dum1, dum2) if (has_to_update_hints) update_wm_hints (new); + /* Don't clobber the internal_border_width + if the caller did not try to change it. */ + if (! has_to_update_internal_border_width) + new->emacs_frame.internal_border_width + = new->emacs_frame.frame->output_data.x->internal_border_width; + update_various_frame_slots (new); /* #### This doesn't work, I haven't been able to find ANY kludge that |