]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last change
authorPo Lu <luangruo@yahoo.com>
Sun, 12 Dec 2021 06:13:05 +0000 (14:13 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 12 Dec 2021 06:14:23 +0000 (14:14 +0800)
* src/xterm.c (x_detect_focus_change): Test against
FOCUS_EXPLICIT.

src/xterm.c

index 676de57455c6a82987cbeef8891ea2e3bfdc5167..3d9dce27e8236d8e74137df1c7edeb5c1467b4d9 100644 (file)
@@ -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