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
11378c41
Commit
11378c41
authored
Aug 14, 1993
by
Richard M. Stallman
Browse files
(x_set_frame_parameters): Don't die if just one of
height and width was set. Likewise left and top.
parent
871d0ce7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/xfns.c
src/xfns.c
+13
-0
No files found.
src/xfns.c
View file @
11378c41
...
...
@@ -396,6 +396,18 @@ x_set_frame_parameters (f, alist)
}
}
/* Don't die if just one of these was set. */
if
(
EQ
(
left
,
Qunbound
))
XSET
(
left
,
Lisp_Int
,
f
->
display
.
x
->
left_pos
);
if
(
EQ
(
top
,
Qunbound
))
XSET
(
top
,
Lisp_Int
,
f
->
display
.
x
->
top_pos
);
/* Don't die if just one of these was set. */
if
(
EQ
(
width
,
Qunbound
))
XSET
(
width
,
Lisp_Int
,
FRAME_WIDTH
(
f
));
if
(
EQ
(
height
,
Qunbound
))
XSET
(
height
,
Lisp_Int
,
FRAME_HEIGHT
(
f
));
/* Don't set these parameters these unless they've been explicitly
specified. The window might be mapped or resized while we're in
this function, and we don't want to override that unless the lisp
...
...
@@ -408,6 +420,7 @@ x_set_frame_parameters (f, alist)
Lisp_Object
frame
;
XSET
(
frame
,
Lisp_Frame
,
f
);
if
((
NUMBERP
(
width
)
&&
XINT
(
width
)
!=
FRAME_WIDTH
(
f
))
||
(
NUMBERP
(
height
)
&&
XINT
(
height
)
!=
FRAME_HEIGHT
(
f
)))
Fset_frame_size
(
frame
,
width
,
height
);
...
...
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