Fix stray button release events being reported on GTK 2
* src/xterm.c (handle_one_xevent): Drop ButtonRelease events that are destined for a popup menu.
This commit is contained in:
@@ -12435,6 +12435,15 @@ handle_one_xevent (struct x_display_info *dpyinfo,
|
||||
|
||||
g_object_ref (copy->button.window);
|
||||
|
||||
if (popup_activated ()
|
||||
&& xev->evtype == XI_ButtonRelease)
|
||||
{
|
||||
*finish = X_EVENT_DROP;
|
||||
gtk_main_do_event (copy);
|
||||
gdk_event_free (copy);
|
||||
goto XI_OTHER;
|
||||
}
|
||||
|
||||
gtk_main_do_event (copy);
|
||||
gdk_event_free (copy);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user