Eli Zaretskii writes: [...] > This cannot be a compile-time condition, because Emacs compiled with X > support can still have TTY frames. So you need to test for > FRAME_WINDOW_P, and only call x_y_to_hpos_vpos if FRAME_WINDOW_P > returns non-zero; otherwise call pixel_to_glyph_coords even in a build > where HAVE_WINDOW_SYSTEM is defined. Ok. Sorry about that. Here is a new one.