emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c10024911d: Ignore XdndPosition events triggered by the wrong mou


From: Po Lu
Subject: master c10024911d: Ignore XdndPosition events triggered by the wrong mouse button
Date: Wed, 13 Apr 2022 22:26:54 -0400 (EDT)

branch: master
commit c10024911d6c225645c22e87a7326c13c0116ac6
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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.
---
 src/xterm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index aad772c423..367659d3c1 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;
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]