diff options
| author | Po Lu | 2021-12-15 10:34:51 +0800 |
|---|---|---|
| committer | Po Lu | 2021-12-15 10:34:51 +0800 |
| commit | aab247751663641cc5ba5912cde7fe78e7be4d42 (patch) | |
| tree | 1fe8f9ad345a6b2c71a7584e32d415a573a8ba5e | |
| parent | 861eee42418f510679a6e3ae1ee433353194cb68 (diff) | |
| download | emacs-aab247751663641cc5ba5912cde7fe78e7be4d42.tar.gz emacs-aab247751663641cc5ba5912cde7fe78e7be4d42.zip | |
Prevent GDK from handling emulated button events
* src/xterm.c (handle_one_xevent): Drop emulated button events.
| -rw-r--r-- | src/xterm.c | 5 |
1 files changed, 4 insertions, 1 deletions
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, | |||
| 10234 | && xev->detail >= 4 | 10234 | && xev->detail >= 4 |
| 10235 | && xev->detail <= 8 | 10235 | && xev->detail <= 8 |
| 10236 | && xev->flags & XIPointerEmulated) | 10236 | && xev->flags & XIPointerEmulated) |
| 10237 | goto XI_OTHER; | 10237 | { |
| 10238 | *finish = X_EVENT_DROP; | ||
| 10239 | goto XI_OTHER; | ||
| 10240 | } | ||
| 10238 | #endif | 10241 | #endif |
| 10239 | 10242 | ||
| 10240 | device = xi_device_from_id (dpyinfo, xev->deviceid); | 10243 | device = xi_device_from_id (dpyinfo, xev->deviceid); |