From: Po Lu Date: Wed, 22 Dec 2021 01:24:05 +0000 (+0800) Subject: Fix GTK crash when clicking on xwidgets on XI2 X-Git-Tag: emacs-29.0.90~3518 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=026804b60631d4766bb99bf94a4ad04e13ae0d07;p=emacs.git Fix GTK crash when clicking on xwidgets on XI2 * src/xterm.c (handle_one_xevent): Drop button events destined for an xwidget. --- diff --git a/src/xterm.c b/src/xterm.c index 8618a986798..33396cc9ab4 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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