Commit 8f08dc93 authored by Karl Heuer's avatar Karl Heuer
Browse files

(XTread_socket): Check for bogus (0,0) location.

parent d83ee578
......@@ -4479,6 +4479,16 @@ XTread_socket (sd, bufp, numchars, expected)
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment