Mercurial > emacs
diff src/xterm.c @ 20182:9f3dd970927e
(XTread_socket): Check for bogus (0,0) location.
| author | Karl Heuer <kwzh@gnu.org> |
|---|---|
| date | Sat, 25 Oct 1997 03:12:31 +0000 |
| parents | bfbf6a2939a3 |
| children | 8e58003a8d02 |
line wrap: on
line diff
--- a/src/xterm.c Fri Oct 24 20:11:44 1997 +0000 +++ b/src/xterm.c Sat Oct 25 03:12:31 1997 +0000 @@ -4479,6 +4479,16 @@ f->output_data.x->win_gravity = NorthWestGravity; x_wm_set_size_hint (f, (long) 0, 0); } +#ifdef USE_MOTIF + /* Some window managers pass (0,0) as the location of + the window, and the Motif event handler stores it + in the emacs widget, which messes up Motif menus. */ + if (event.xconfigure.x == 0 && event.xconfigure.y == 0) + { + event.xconfigure.x = f->output_data.x->widget->core.x; + event.xconfigure.y = f->output_data.x->widget->core.y; + } +#endif } goto OTHER;
