From 7527c941f7a8a71a729e8008aaf370d9c771c397 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 24 May 2022 13:50:07 +0800 Subject: [PATCH] Fix use of wrong event structure handling XI_Enter events * src/xterm.c (handle_one_xevent): Use `enter' instead of `xev' to set the mouse click timeout. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index f86ec0fad39..9edec9dbeb6 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -17505,7 +17505,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, if (f && x_mouse_click_focus_ignore_position) { - ignore_next_mouse_click_timeout = xev->time + 200; + ignore_next_mouse_click_timeout = enter->time + 200; mouse_click_timeout_display = dpyinfo; } -- 2.39.2