aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2021-12-21 10:01:37 +0800
committerPo Lu2021-12-21 10:01:37 +0800
commit43356423a285d41ce3edc00c3ed115b184e2c720 (patch)
tree5e6190e4673925dfbf5ab71265a3ded5e470e1c6 /src
parent513fe2d6ff9808d54e9a9ff6eb82ef1518d4d6ad (diff)
downloademacs-43356423a285d41ce3edc00c3ed115b184e2c720.tar.gz
emacs-43356423a285d41ce3edc00c3ed115b184e2c720.zip
Don't drop touch events we're not interested in on GTK3
* src/xterm.c (handle_one_xevent): Allow GTK to handle unwanted TouchBegin events.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index cd135056a2c..1dc68220f08 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10891,7 +10891,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
10891 f = x_any_window_to_frame (dpyinfo, xev->event); 10891 f = x_any_window_to_frame (dpyinfo, xev->event);
10892 10892
10893#ifdef HAVE_GTK3 10893#ifdef HAVE_GTK3
10894 menu_bar_p = (FRAME_X_OUTPUT (f)->menubar_widget 10894 menu_bar_p = (f && FRAME_X_OUTPUT (f)->menubar_widget
10895 && xg_event_is_for_menubar (f, event)); 10895 && xg_event_is_for_menubar (f, event));
10896#endif 10896#endif
10897 10897
@@ -10917,6 +10917,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
10917 } 10917 }
10918 x_uncatch_errors_after_check (); 10918 x_uncatch_errors_after_check ();
10919 } 10919 }
10920#ifndef HAVE_GTK3
10920 else 10921 else
10921 { 10922 {
10922 x_catch_errors (dpyinfo->display); 10923 x_catch_errors (dpyinfo->display);
@@ -10924,7 +10925,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
10924 xev->detail, xev->event, XIRejectTouch); 10925 xev->detail, xev->event, XIRejectTouch);
10925 x_uncatch_errors (); 10926 x_uncatch_errors ();
10926 } 10927 }
10927 10928#endif
10928 } 10929 }
10929 else 10930 else
10930 { 10931 {