/* Translate windows coordinates into a vertical window position. */
int hpos, vpos, area;
struct window *w = XWINDOW (window);
- x_y_to_hpos_vpos (w, x, y, &hpos, &vpos, 0, 0, &area);
+ if (x_y_to_hpos_vpos (w, x, y, &hpos, &vpos, 0, 0, &area) == NULL)
+ return; /* not all glyph rows between 0 and Y are enabled */
/* Don't access the TEXT_AREA of a row that does not display text,
when the window is outdated, or when vpos overflows the current