emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 50484ad7d7 1/2: Only focus frame implicitly if focus flag is set


From: Po Lu
Subject: master 50484ad7d7 1/2: Only focus frame implicitly if focus flag is set
Date: Sun, 26 Dec 2021 01:48:27 -0500 (EST)

branch: master
commit 50484ad7d78acb8358fb7da5b19cd17ef060d74e
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Only focus frame implicitly if focus flag is set
    
    * src/xterm.c (x_detect_focus_change): Test for focus flag on
    XI entry events.
---
 src/xterm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/xterm.c b/src/xterm.c
index 12c14e5e4f..00cb04f005 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5246,6 +5246,7 @@ x_detect_focus_change (struct x_display_info *dpyinfo, 
struct frame *frame,
               || xi_event->evtype == XI_Leave)
              && (((XIEnterEvent *) xi_event)->detail
                  != XINotifyInferior)
+             && ((XIEnterEvent *) xi_event)->focus
              && !(focus_state & FOCUS_EXPLICIT))
          x_focus_changed ((xi_event->evtype == XI_Enter
                            ? FocusIn : FocusOut),



reply via email to

[Prev in Thread] Current Thread [Next in Thread]