aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-09-23 04:40:39 +0000
committerRichard M. Stallman1996-09-23 04:40:39 +0000
commitde42d728f6004f829cdc040cd3b3ab4e292644dd (patch)
tree0334a61ef35157f52d4141c3e4a42a952972faf0 /src
parentba88fc3af19da9ed5a41ba6a51623d17335916bd (diff)
downloademacs-de42d728f6004f829cdc040cd3b3ab4e292644dd.tar.gz
emacs-de42d728f6004f829cdc040cd3b3ab4e292644dd.zip
(EmacsFrameSetValues): Copy internal_border_width
from the Emacs frame if caller isn't changing it.
Diffstat (limited to 'src')
-rw-r--r--src/widget.c11
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)
796 Boolean has_to_recompute_size; 796 Boolean has_to_recompute_size;
797 Boolean has_to_recompute_gcs; 797 Boolean has_to_recompute_gcs;
798 Boolean has_to_update_hints; 798 Boolean has_to_update_hints;
799 Boolean has_to_update_internal_border_width;
799 800
800 int char_width, char_height; 801 int char_width, char_height;
801 Dimension pixel_width; 802 Dimension pixel_width;
@@ -814,6 +815,10 @@ EmacsFrameSetValues (cur_widget, req_widget, new_widget, dum1, dum2)
814 815
815 has_to_update_hints = (cur->emacs_frame.font != new->emacs_frame.font); 816 has_to_update_hints = (cur->emacs_frame.font != new->emacs_frame.font);
816 817
818 has_to_update_internal_border_width
819 = (cur->emacs_frame.internal_border_width
820 != new->emacs_frame.internal_border_width);
821
817 if (has_to_recompute_gcs) 822 if (has_to_recompute_gcs)
818 { 823 {
819 setup_frame_gcs (new); 824 setup_frame_gcs (new);
@@ -839,6 +844,12 @@ EmacsFrameSetValues (cur_widget, req_widget, new_widget, dum1, dum2)
839 if (has_to_update_hints) 844 if (has_to_update_hints)
840 update_wm_hints (new); 845 update_wm_hints (new);
841 846
847 /* Don't clobber the internal_border_width
848 if the caller did not try to change it. */
849 if (! has_to_update_internal_border_width)
850 new->emacs_frame.internal_border_width
851 = new->emacs_frame.frame->output_data.x->internal_border_width;
852
842 update_various_frame_slots (new); 853 update_various_frame_slots (new);
843 854
844 /* #### This doesn't work, I haven't been able to find ANY kludge that 855 /* #### This doesn't work, I haven't been able to find ANY kludge that