* src/xterm.c (handle_one_xevent): Allow GTK to handle
unwanted TouchBegin events.
f = x_any_window_to_frame (dpyinfo, xev->event);
#ifdef HAVE_GTK3
- menu_bar_p = (FRAME_X_OUTPUT (f)->menubar_widget
+ menu_bar_p = (f && FRAME_X_OUTPUT (f)->menubar_widget
&& xg_event_is_for_menubar (f, event));
#endif
}
x_uncatch_errors_after_check ();
}
+#ifndef HAVE_GTK3
else
{
x_catch_errors (dpyinfo->display);
xev->detail, xev->event, XIRejectTouch);
x_uncatch_errors ();
}
-
+#endif
}
else
{