aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1993-07-02 04:00:38 +0000
committerJim Blandy <[email protected]>1993-07-02 04:00:38 +0000
commit6cc35d868b003f2d3a617994dadd1bf7c9fd4d50 (patch)
tree16c432dfd8b08ab8dd97d242464e6c91b8d0cc60 /src
parent0d370700b250e434eb3389c3e8c301ebf82a8aab (diff)
* xterm.c (XTread_socket): When handing non-synthetic
ConfigureNotify events, don't refer to the parent window descriptor.
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 3e80d64253..e43dba33ef 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3171,17 +3171,20 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
Window win, child;
int win_x, win_y;
- /* Coords are relative to the parent.
- Convert them to root-relative. */
+ /* Find the position of the outside upper-left corner of
+ the window, in the root coordinate system. Don't
+ refer to the parent window here; we may be processing
+ this event after the window manager has changed our
+ parent, but before we have reached the ReparentNotify. */
XTranslateCoordinates (x_current_display,
/* From-window, to-window. */
- f->display.x->parent_desc,
+ f->display.x->window_desc,
ROOT_WINDOW,
/* From-position, to-position. */
- event.xconfigure.x,
- event.xconfigure.y,
+ -event.xconfigure.border_width,
+ -event.xconfigure.border_width,
&win_x, &win_y,
/* Child of win. */