aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 3e80d64253e..e43dba33ef9 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3171,17 +3171,20 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3171 Window win, child; 3171 Window win, child;
3172 int win_x, win_y; 3172 int win_x, win_y;
3173 3173
3174 /* Coords are relative to the parent. 3174 /* Find the position of the outside upper-left corner of
3175 Convert them to root-relative. */ 3175 the window, in the root coordinate system. Don't
3176 refer to the parent window here; we may be processing
3177 this event after the window manager has changed our
3178 parent, but before we have reached the ReparentNotify. */
3176 XTranslateCoordinates (x_current_display, 3179 XTranslateCoordinates (x_current_display,
3177 3180
3178 /* From-window, to-window. */ 3181 /* From-window, to-window. */
3179 f->display.x->parent_desc, 3182 f->display.x->window_desc,
3180 ROOT_WINDOW, 3183 ROOT_WINDOW,
3181 3184
3182 /* From-position, to-position. */ 3185 /* From-position, to-position. */
3183 event.xconfigure.x, 3186 -event.xconfigure.border_width,
3184 event.xconfigure.y, 3187 -event.xconfigure.border_width,
3185 &win_x, &win_y, 3188 &win_x, &win_y,
3186 3189
3187 /* Child of win. */ 3190 /* Child of win. */