aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1999-01-25 01:37:58 +0000
committerRichard M. Stallman1999-01-25 01:37:58 +0000
commit7589a1d97e9150b9352393d049b3cf6a2cc68086 (patch)
tree6187c0959e0a1dbcea5398b2a1490d6c41576bb6 /src
parent5497dfdb4bec817ca60828f1937ba06d36a4f744 (diff)
downloademacs-7589a1d97e9150b9352393d049b3cf6a2cc68086.tar.gz
emacs-7589a1d97e9150b9352393d049b3cf6a2cc68086.zip
(x_set_frame_parameters): gcpro as needed.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 1a76f039eff..b1b453854ec 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -760,6 +760,8 @@ x_set_frame_parameters (f, alist)
760 int left_no_change = 0, top_no_change = 0; 760 int left_no_change = 0, top_no_change = 0;
761 int icon_left_no_change = 0, icon_top_no_change = 0; 761 int icon_left_no_change = 0, icon_top_no_change = 0;
762 762
763 struct gcpro gcpro1, gcpro2;
764
763 i = 0; 765 i = 0;
764 for (tail = alist; CONSP (tail); tail = Fcdr (tail)) 766 for (tail = alist; CONSP (tail); tail = Fcdr (tail))
765 i++; 767 i++;
@@ -779,7 +781,15 @@ x_set_frame_parameters (f, alist)
779 values[i] = Fcdr (elt); 781 values[i] = Fcdr (elt);
780 i++; 782 i++;
781 } 783 }
784 /* TAIL and ALIST are not used again below here. */
785 alist = tail = Qnil;
786
787 GCPRO2 (*parms, *values);
788 gcpro1.nvars = i;
789 gcpro2.nvars = i;
782 790
791 /* There is no need to gcpro LEFT, TOP, ICON_LEFT, or ICON_TOP,
792 because their values appear in VALUES and strings are not valid. */
783 top = left = Qunbound; 793 top = left = Qunbound;
784 icon_left = icon_top = Qunbound; 794 icon_left = icon_top = Qunbound;
785 795
@@ -951,6 +961,8 @@ x_set_frame_parameters (f, alist)
951 && ! (icon_left_no_change && icon_top_no_change)) 961 && ! (icon_left_no_change && icon_top_no_change))
952 x_wm_set_icon_position (f, XINT (icon_left), XINT (icon_top)); 962 x_wm_set_icon_position (f, XINT (icon_left), XINT (icon_top));
953 } 963 }
964
965 UNGCPRO;
954} 966}
955 967
956/* Store the screen positions of frame F into XPTR and YPTR. 968/* Store the screen positions of frame F into XPTR and YPTR.