aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-03-03 10:49:55 +0800
committerPo Lu2022-03-03 10:50:30 +0800
commitb727d6ebeb45ef4e9e7098a1e67949774009ec95 (patch)
tree7f2c8523fbe9ba994a3bebedd2e419a9fc962b41 /src
parent543640628607ec06e9698cc50c33497ca75155a4 (diff)
downloademacs-b727d6ebeb45ef4e9e7098a1e67949774009ec95.tar.gz
emacs-b727d6ebeb45ef4e9e7098a1e67949774009ec95.zip
Don't calculate any frame for extension events
* src/xterm.c (handle_one_xevent): If event is not a core event, don't try to calculate any from event.xany.window.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 9960f4930d2..47f9d31ad44 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -9794,10 +9794,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
9794 inev.ie.kind = NO_EVENT; 9794 inev.ie.kind = NO_EVENT;
9795 inev.ie.arg = Qnil; 9795 inev.ie.arg = Qnil;
9796 9796
9797#ifdef HAVE_XKB 9797 /* Ignore events coming from various extensions, such as XFIXES and
9798 if (event->type != dpyinfo->xkb_event_type) 9798 XKB. */
9799 if (event->type < LASTEvent)
9799 { 9800 {
9800#endif
9801#ifdef HAVE_XINPUT2 9801#ifdef HAVE_XINPUT2
9802 if (event->type != GenericEvent) 9802 if (event->type != GenericEvent)
9803#endif 9803#endif
@@ -9806,11 +9806,9 @@ handle_one_xevent (struct x_display_info *dpyinfo,
9806 else 9806 else
9807 any = NULL; 9807 any = NULL;
9808#endif 9808#endif
9809#ifdef HAVE_XKB
9810 } 9809 }
9811 else 9810 else
9812 any = NULL; 9811 any = NULL;
9813#endif
9814 9812
9815 if (any && any->wait_event_type == event->type) 9813 if (any && any->wait_event_type == event->type)
9816 any->wait_event_type = 0; /* Indicates we got it. */ 9814 any->wait_event_type = 0; /* Indicates we got it. */