From 4f987e189d129523a93b21427c24f761e7fb4c00 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 12 Dec 2021 14:13:05 +0800 Subject: [PATCH] Fix last change * src/xterm.c (x_detect_focus_change): Test against FOCUS_EXPLICIT. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 676de57455c..3d9dce27e82 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -5148,7 +5148,7 @@ x_detect_focus_change (struct x_display_info *dpyinfo, struct frame *frame, || xi_event->evtype == XI_Leave) && (((XIEnterEvent *) xi_event)->detail != XINotifyInferior) - && (focus_state & FOCUS_EXPLICIT)) + && !(focus_state & FOCUS_EXPLICIT)) || xi_event->evtype == XI_FocusIn || xi_event->evtype == XI_FocusOut))) x_focus_changed ((xi_event->evtype == XI_Enter -- 2.39.5