Fix sending button presses if the drop target specified a mouse rectangle

* src/xterm.c (x_dnd_send_position): Handle button presses
specially, ignoring mouse rectangles.
This commit is contained in:
Po Lu 2022-07-15 10:30:18 +08:00
parent 00eb894a56
commit 2e0c76e397

View file

@ -4455,7 +4455,10 @@ x_dnd_send_position (struct frame *f, Window target, int supported,
if (target == x_dnd_mouse_rect_target
&& x_dnd_mouse_rect.width
&& x_dnd_mouse_rect.height)
&& x_dnd_mouse_rect.height
/* Ignore the mouse rectangle if we're supposed to be sending a
button press instead. */
&& (supported < 5 || !button))
{
if (root_x >= x_dnd_mouse_rect.x
&& root_x < (x_dnd_mouse_rect.x