• Dmitry Antipov's avatar
    Fix X event waiting to handle multiple frames. · f8eb1572
    Dmitry Antipov authored
    * frame.h (struct frame) [HAVE_X_WINDOWS]: New member wait_event_type.
    * xterm.c (pending_event_wait): Remove.  Adjust users.
    (x_detect_focus_change): Pass frame arg.
    (handle_one_xevent): Find related frame early and clear per-frame
    wait_event_type only if this is an event for the relevant frame.
    (x_wait_for_event): Use per-frame wait_event_type.
xterm.c 318 KB