]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix GTK crash when clicking on xwidgets on XI2
authorPo Lu <luangruo@yahoo.com>
Wed, 22 Dec 2021 01:24:05 +0000 (09:24 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 22 Dec 2021 01:24:05 +0000 (09:24 +0800)
* src/xterm.c (handle_one_xevent): Drop button events destined
for an xwidget.

src/xterm.c

index 8618a986798805c3b0a712767f7ee36c8a1d117f..33396cc9ab42f768d17b3928c5f4b896ed49a6fb 100644 (file)
@@ -9704,6 +9704,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                inev.ie.kind = SELECT_WINDOW_EVENT;
                inev.ie.frame_or_window = xvw->w;
              }
+
+           *finish = X_EVENT_DROP;
            goto OTHER;
          }
 #endif