aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-05-29 07:12:58 +0000
committerKarl Heuer1995-05-29 07:12:58 +0000
commit9b002b8d0ce837c5af429b5d87106ae32a212ee5 (patch)
treedcc65ada25369fb1c9dc44f7ac7d81da6a26f83c /src
parentfa25dbbca65832cb4aa7f031858ea5dc72c255b6 (diff)
downloademacs-9b002b8d0ce837c5af429b5d87106ae32a212ee5.tar.gz
emacs-9b002b8d0ce837c5af429b5d87106ae32a212ee5.zip
(x_report_frame_params): Report top and left
in a way that represents negative offsets correctly.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 5b125682cc8..790397e8edd 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -981,9 +981,22 @@ x_report_frame_params (f, alistptr)
981 Lisp_Object *alistptr; 981 Lisp_Object *alistptr;
982{ 982{
983 char buf[16]; 983 char buf[16];
984 Lisp_Object tem;
985
986 /* Represent negative positions (off the top or left screen edge)
987 in a way that Fmodify_frame_parameters will understand correctly. */
988 XSETINT (tem, f->display.x->left_pos);
989 if (f->display.x->left_pos >= 0)
990 store_in_alist (alistptr, Qleft, tem);
991 else
992 store_in_alist (alistptr, Qleft, Fcons (Qplus, Fcons (tem, Qnil)));
993
994 XSETINT (tem, f->display.x->top_pos);
995 if (f->display.x->top_pos >= 0)
996 store_in_alist (alistptr, Qtop, tem);
997 else
998 store_in_alist (alistptr, Qtop, Fcons (Qplus, Fcons (tem, Qnil)));
984 999
985 store_in_alist (alistptr, Qleft, make_number (f->display.x->left_pos));
986 store_in_alist (alistptr, Qtop, make_number (f->display.x->top_pos));
987 store_in_alist (alistptr, Qborder_width, 1000 store_in_alist (alistptr, Qborder_width,
988 make_number (f->display.x->border_width)); 1001 make_number (f->display.x->border_width));
989 store_in_alist (alistptr, Qinternal_border_width, 1002 store_in_alist (alistptr, Qinternal_border_width,