1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

Use cached monitor info during DND if available

* src/xterm.c (x_dnd_begin_drag_and_drop): Use previously cached
monitor attributes if they exist.
This commit is contained in:
Po Lu 2022-06-12 10:17:19 +08:00
parent 574c5d1de4
commit 6aa8baaea1

View File

@ -10988,8 +10988,15 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction,
if (follow_tooltip)
{
#if defined HAVE_XRANDR || defined USE_GTK
x_dnd_monitors
= FRAME_DISPLAY_INFO (f)->last_monitor_attributes_list;
if (NILP (x_dnd_monitors))
#endif
x_dnd_monitors
= Fx_display_monitor_attributes_list (frame);
record_unwind_protect_void (x_clear_dnd_monitors);
}