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:
parent
62fc53d75b
commit
efdfe22704
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue