• Po Lu's avatar
    Cache the Motif drag window to avoid fetching it every time · fd853c71
    Po Lu authored
    * src/xterm.c (xm_get_drag_window_1): New function.
    (xm_get_drag_window): Cache the window.  If it already exists,
    just return it.
    (xm_setup_dnd_targets): If a BadWindow error occurs, re-create
    the Motif drag window.
    
    * src/xterm.h (struct x_display_info): New field
    `motif_drag_window'.
    fd853c71
xterm.h 53.6 KB