# HG changeset patch # User Jim Blandy # Date 741585638 0 # Node ID 9da0fb7d815ebde37d364cd3c96aedc176ab580e # Parent 6e13c3b03b67475be5dfc08c053f50df970bfca6 * xterm.c (XTread_socket): When handing non-synthetic ConfigureNotify events, don't refer to the parent window descriptor. diff -r 6e13c3b03b67 -r 9da0fb7d815e src/xterm.c --- a/src/xterm.c Fri Jul 02 00:15:07 1993 +0000 +++ b/src/xterm.c Fri Jul 02 04:00:38 1993 +0000 @@ -3171,17 +3171,20 @@ 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. */