]> git.eshelyaron.com Git - emacs.git/commit
Cache the Motif drag window to avoid fetching it every time
authorPo Lu <luangruo@yahoo.com>
Sun, 19 Jun 2022 03:35:12 +0000 (11:35 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 19 Jun 2022 03:35:12 +0000 (11:35 +0800)
commitfd853c71a958e3156014378fdd145e6e4d8c2717
tree207d1a23ea78a66fd7ff36323b69bfbebd1eda5e
parent3285901e9a87f083bf88ac732a3ed2eae6488fec
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'.
src/xterm.c
src/xterm.h