Fix touchscreen support on Xt builds

* src/xterm.c (handle_one_xevent): Make menu bar touch event
code conditional on GTK3.
This commit is contained in:
Po Lu 2021-12-17 19:17:50 +08:00
parent 62fc53d75b
commit efdfe22704

View file

@ -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;