]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix touchscreen support on Xt builds
authorPo Lu <luangruo@yahoo.com>
Fri, 17 Dec 2021 11:17:50 +0000 (19:17 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 17 Dec 2021 11:17:50 +0000 (19:17 +0800)
* src/xterm.c (handle_one_xevent): Make menu bar touch event
code conditional on GTK3.

src/xterm.c

index 9f39561fbdb8a8d19ebccb4764989050586e66b8..761e324e8c59f22955411cbaaf75654df724e1e3 100644 (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;