From: Po Lu Date: Thu, 14 Apr 2022 02:26:39 +0000 (+0800) Subject: Ignore XdndPosition events triggered by the wrong mouse button X-Git-Tag: emacs-29.0.90~1931^2~581 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c10024911d6c225645c22e87a7326c13c0116ac6;p=emacs.git Ignore XdndPosition events triggered by the wrong mouse button * src/xterm.c (x_dnd_send_position): Don't send if button is set but not a scroll wheel button. --- diff --git a/src/xterm.c b/src/xterm.c index aad772c4236..367659d3c1c 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -3389,6 +3389,8 @@ x_dnd_send_position (struct frame *f, Window target, int supported, msg.xclient.data.l[1] |= (1 << 9); msg.xclient.data.l[1] |= (button - 4) << 7; } + else if (button) + return; msg.xclient.data.l[1] |= state & 0x3f; }