if (!x_dnd_in_progress || !x_dnd_update_tooltip)
return;
- dpyinfo = FRAME_DISPLAY_INFO (XFRAME (x_dnd_frame));
+ dpyinfo = FRAME_DISPLAY_INFO (x_dnd_frame);
rc = XQueryPointer (dpyinfo->display,
dpyinfo->root_window,
ie.arg = terminal;
kbd_buffer_store_event (&ie);
- }
- dpyinfo->last_monitor_attributes_list = current_monitors;
+ if (x_dnd_in_progress && x_dnd_update_tooltip)
+ x_dnd_monitors = current_monitors;
- if (x_dnd_in_progress && x_dnd_update_tooltip)
- x_dnd_monitors = current_monitors;
+ x_dnd_update_tooltip_now ();
+ }
- x_dnd_update_tooltip_now ();
+ dpyinfo->last_monitor_attributes_list = current_monitors;
}
#endif
if (x_dnd_in_progress && x_dnd_update_tooltip)
x_dnd_monitors = current_monitors;
- x_dnd_update_tooltip_now ();
+ if (inev.ie.kind != NO_EVENT)
+ x_dnd_update_tooltip_now ();
}
#endif
OTHER: