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:
parent
574c5d1de4
commit
6aa8baaea1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user