aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-09-27 06:52:45 +0000
committerRichard M. Stallman1996-09-27 06:52:45 +0000
commitd793b10560c29d47092470c0b1b21f9c469b924f (patch)
treede25568429522036d35713a0495b7131bb82d7c3 /src
parente1df51ae10c5c4a624aa699eab31606e469b2bc2 (diff)
downloademacs-d793b10560c29d47092470c0b1b21f9c469b924f.tar.gz
emacs-d793b10560c29d47092470c0b1b21f9c469b924f.zip
(widget_store_internal_border): New function.
(EmacsFrameSetValues): Undo previous change.
Diffstat (limited to 'src')
-rw-r--r--src/widget.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/widget.c b/src/widget.c
index b9dfe47a3a5..55be90fee91 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -796,7 +796,6 @@ 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;
800 799
801 int char_width, char_height; 800 int char_width, char_height;
802 Dimension pixel_width; 801 Dimension pixel_width;
@@ -815,10 +814,6 @@ EmacsFrameSetValues (cur_widget, req_widget, new_widget, dum1, dum2)
815 814
816 has_to_update_hints = (cur->emacs_frame.font != new->emacs_frame.font); 815 has_to_update_hints = (cur->emacs_frame.font != new->emacs_frame.font);
817 816
818 has_to_update_internal_border_width
819 = (cur->emacs_frame.internal_border_width
820 != new->emacs_frame.internal_border_width);
821
822 if (has_to_recompute_gcs) 817 if (has_to_recompute_gcs)
823 { 818 {
824 setup_frame_gcs (new); 819 setup_frame_gcs (new);
@@ -844,12 +839,6 @@ EmacsFrameSetValues (cur_widget, req_widget, new_widget, dum1, dum2)
844 if (has_to_update_hints) 839 if (has_to_update_hints)
845 update_wm_hints (new); 840 update_wm_hints (new);
846 841
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
853 update_various_frame_slots (new); 842 update_various_frame_slots (new);
854 843
855 /* #### This doesn't work, I haven't been able to find ANY kludge that 844 /* #### This doesn't work, I haven't been able to find ANY kludge that
@@ -975,3 +964,13 @@ EmacsFrameSetCharSize (widget, columns, rows)
975 we have to make sure to do it here. */ 964 we have to make sure to do it here. */
976 SET_FRAME_GARBAGED (f); 965 SET_FRAME_GARBAGED (f);
977} 966}
967
968widget_store_internal_border (widget)
969 Widget widget;
970{
971 EmacsFrame ew = (EmacsFrame) widget;
972 FRAME_PTR f = ew->emacs_frame.frame;
973
974 ew->emacs_frame.internal_border_width
975 = f->output_data.x->internal_border_width;
976}