Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9b002b8d
Commit
9b002b8d
authored
May 29, 1995
by
Karl Heuer
Browse files
(x_report_frame_params): Report top and left
in a way that represents negative offsets correctly.
parent
fa25dbbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
src/xfns.c
src/xfns.c
+15
-2
No files found.
src/xfns.c
View file @
9b002b8d
...
...
@@ -981,9 +981,22 @@ x_report_frame_params (f, alistptr)
Lisp_Object
*
alistptr
;
{
char
buf
[
16
];
Lisp_Object
tem
;
/* Represent negative positions (off the top or left screen edge)
in a way that Fmodify_frame_parameters will understand correctly. */
XSETINT
(
tem
,
f
->
display
.
x
->
left_pos
);
if
(
f
->
display
.
x
->
left_pos
>=
0
)
store_in_alist
(
alistptr
,
Qleft
,
tem
);
else
store_in_alist
(
alistptr
,
Qleft
,
Fcons
(
Qplus
,
Fcons
(
tem
,
Qnil
)));
XSETINT
(
tem
,
f
->
display
.
x
->
top_pos
);
if
(
f
->
display
.
x
->
top_pos
>=
0
)
store_in_alist
(
alistptr
,
Qtop
,
tem
);
else
store_in_alist
(
alistptr
,
Qtop
,
Fcons
(
Qplus
,
Fcons
(
tem
,
Qnil
)));
store_in_alist
(
alistptr
,
Qleft
,
make_number
(
f
->
display
.
x
->
left_pos
));
store_in_alist
(
alistptr
,
Qtop
,
make_number
(
f
->
display
.
x
->
top_pos
));
store_in_alist
(
alistptr
,
Qborder_width
,
make_number
(
f
->
display
.
x
->
border_width
));
store_in_alist
(
alistptr
,
Qinternal_border_width
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment