diff options
| author | Jim Blandy | 1993-07-02 04:00:38 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-07-02 04:00:38 +0000 |
| commit | 6cc35d868b003f2d3a617994dadd1bf7c9fd4d50 (patch) | |
| tree | 16c432dfd8b08ab8dd97d242464e6c91b8d0cc60 /src | |
| parent | 0d370700b250e434eb3389c3e8c301ebf82a8aab (diff) | |
| download | emacs-6cc35d868b003f2d3a617994dadd1bf7c9fd4d50.tar.gz emacs-6cc35d868b003f2d3a617994dadd1bf7c9fd4d50.zip | |
* 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.c | 13 |
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. */ |