Cache the Motif drag window to avoid fetching it every time
* 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'.
Showing with 31 additions and 1 deletion