From 026804b60631d4766bb99bf94a4ad04e13ae0d07 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 22 Dec 2021 09:24:05 +0800 Subject: [PATCH] Fix GTK crash when clicking on xwidgets on XI2 * src/xterm.c (handle_one_xevent): Drop button events destined for an xwidget. --- src/xterm.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.2