# HG changeset patch # User Karl Heuer # Date 877749151 0 # Node ID 9f3dd970927e2b41f0f65fe86eba57ffd64f6eba # Parent fe0f0a9bb43f4e7dbbbf6fdd00d503fafae47efe (XTread_socket): Check for bogus (0,0) location. diff -r fe0f0a9bb43f -r 9f3dd970927e src/xterm.c --- 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;