emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 4335642: Don't drop touch events we're not interested in on GTK3


From: Po Lu
Subject: master 4335642: Don't drop touch events we're not interested in on GTK3
Date: Mon, 20 Dec 2021 21:02:04 -0500 (EST)

branch: master
commit 43356423a285d41ce3edc00c3ed115b184e2c720
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Don't drop touch events we're not interested in on GTK3
    
    * src/xterm.c (handle_one_xevent): Allow GTK to handle
    unwanted TouchBegin events.
---
 src/xterm.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index cd13505..1dc6822 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10891,7 +10891,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
              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
 
@@ -10917,6 +10917,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                        }
                      x_uncatch_errors_after_check ();
                    }
+#ifndef HAVE_GTK3
                  else
                    {
                      x_catch_errors (dpyinfo->display);
@@ -10924,7 +10925,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                                          xev->detail, xev->event, 
XIRejectTouch);
                      x_uncatch_errors ();
                    }
-
+#endif
                }
              else
                {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]