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
e9445337
Commit
e9445337
authored
May 08, 1994
by
Richard M. Stallman
Browse files
(x_real_positions): New function.
parent
fa974a00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
src/xfns.c
src/xfns.c
+41
-0
No files found.
src/xfns.c
View file @
e9445337
...
...
@@ -547,6 +547,47 @@ x_set_frame_parameters (f, alist)
}
}
/* Store the positions of frame F into XPTR and YPTR.
These are the positions of the containing window manager window,
not Emacs's own window. */
void
x_real_positions
(
f
,
xptr
,
yptr
)
FRAME_PTR
f
;
int
*
xptr
,
*
yptr
;
{
int
win_x
=
0
,
win_y
=
0
;
Window
child
;
/* Find the position of the outside upper-left corner of
the inner window, with respect to the outer window. */
if
(
f
->
display
.
x
->
parent_desc
!=
ROOT_WINDOW
)
{
BLOCK_INPUT
;
XTranslateCoordinates
(
x_current_display
,
/* From-window, to-window. */
#ifdef USE_X_TOOLKIT
XtWindow
(
f
->
display
.
x
->
widget
),
#else
f
->
display
.
x
->
window_desc
,
#endif
f
->
display
.
x
->
parent_desc
,
/* From-position, to-position. */
0
,
0
,
&
win_x
,
&
win_y
,
/* Child of win. */
&
child
);
UNBLOCK_INPUT
;
win_x
+=
f
->
display
.
x
->
border_width
;
win_y
+=
f
->
display
.
x
->
border_width
;
}
*
xptr
=
f
->
display
.
x
->
left_pos
-
win_x
;
*
yptr
=
f
->
display
.
x
->
top_pos
-
win_y
;
}
/* Insert a description of internally-recorded parameters of frame X
into the parameter alist *ALISTPTR that is to be given to the user.
Only parameters that are specific to the X window system
...
...
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