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
043835a3
Commit
043835a3
authored
Jun 17, 1994
by
Richard M. Stallman
Browse files
(x_real_positions): Make sure we know the parent window.
parent
46680faf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/xfns.c
src/xfns.c
+17
-0
No files found.
src/xfns.c
View file @
043835a3
...
...
@@ -570,6 +570,23 @@ x_real_positions (f, xptr, yptr)
int
win_x
=
0
,
win_y
=
0
;
Window
child
;
/* This is pretty gross, but seems to be the easiest way out of
the problem that arises when restarting window-managers. */
#ifdef USE_X_TOOLKIT
Window
outer
=
XtWindow
(
f
->
display
.
x
->
widget
);
#else
Window
outer
=
f
->
display
.
x
->
window_desc
;
#endif
Window
tmp_root_window
;
Window
*
tmp_children
;
int
tmp_nchildren
;
XQueryTree
(
x_current_display
,
outer
,
&
tmp_root_window
,
&
f
->
display
.
x
->
parent_desc
,
&
tmp_children
,
&
tmp_nchildren
);
xfree
(
tmp_children
);
/* 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
)
...
...
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