summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-12-17 19:17:50 +0800
committerPo Lu <luangruo@yahoo.com>2021-12-17 19:17:50 +0800
commitefdfe22704581dca8bc8b32672f7b5ae142f1fd5 (patch)
tree7d52e662278af0fe12f77b7ddd8f7656bbdad285
parent62fc53d75b7e56b4e5f5ce13f16ccdd7a32f2874 (diff)
downloademacs-efdfe22704581dca8bc8b32672f7b5ae142f1fd5.tar.gz
Fix touchscreen support on Xt builds
* src/xterm.c (handle_one_xevent): Make menu bar touch event code conditional on GTK3.
-rw-r--r--src/xterm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 9f39561fbdb..761e324e8c5 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10890,6 +10890,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
xi_link_touch_point (device, xev->detail, xev->event_x,
xev->event_y);
+#ifdef HAVE_GTK3
if (FRAME_X_OUTPUT (f)->menubar_widget
&& xg_event_is_for_menubar (f, event))
{
@@ -10902,6 +10903,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
set_frame_menubar (f, true);
waiting_for_input = was_waiting_for_input;
}
+#endif
inev.ie.kind = TOUCHSCREEN_BEGIN_EVENT;
inev.ie.timestamp = xev->time;