From: Po Lu Date: Wed, 15 Dec 2021 02:34:51 +0000 (+0800) Subject: Prevent GDK from handling emulated button events X-Git-Tag: emacs-29.0.90~3593^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aab247751663641cc5ba5912cde7fe78e7be4d42;p=emacs.git Prevent GDK from handling emulated button events * src/xterm.c (handle_one_xevent): Drop emulated button events. --- diff --git a/src/xterm.c b/src/xterm.c index 1f377f838b3..646985bdc20 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10234,7 +10234,10 @@ handle_one_xevent (struct x_display_info *dpyinfo, && xev->detail >= 4 && xev->detail <= 8 && xev->flags & XIPointerEmulated) - goto XI_OTHER; + { + *finish = X_EVENT_DROP; + goto XI_OTHER; + } #endif device = xi_device_from_id (dpyinfo, xev->deviceid);