diff options
| author | Po Lu | 2022-06-20 18:13:51 +0800 |
|---|---|---|
| committer | Po Lu | 2022-06-20 18:13:51 +0800 |
| commit | 854714efb47d3365c41a84443fa56e7e275bfb4c (patch) | |
| tree | 947b88246bd8bc95c355406f289c33001500f109 /src | |
| parent | c1453cd6f6b79e050db976bcdcfe68235e45e0a7 (diff) | |
| download | emacs-854714efb47d3365c41a84443fa56e7e275bfb4c.tar.gz emacs-854714efb47d3365c41a84443fa56e7e275bfb4c.zip | |
Ignore pinch events from the wrong window
* src/xterm.c (handle_one_xevent): Use x_window_to_frame to find
frames for pinch events.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 12d091c1d92..b5543b873ca 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -21685,7 +21685,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 21685 | } | 21685 | } |
| 21686 | #endif | 21686 | #endif |
| 21687 | 21687 | ||
| 21688 | any = x_any_window_to_frame (dpyinfo, pev->event); | 21688 | any = x_window_to_frame (dpyinfo, pev->event); |
| 21689 | if (any) | 21689 | if (any) |
| 21690 | { | 21690 | { |
| 21691 | inev.ie.kind = PINCH_EVENT; | 21691 | inev.ie.kind = PINCH_EVENT; |