emacs-diffs
[Top][All Lists]
Advanced

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

master 11b2dfc: * src/xterm.c (x_detect_focus_change): Fix XI2 focus on


From: Po Lu
Subject: master 11b2dfc: * src/xterm.c (x_detect_focus_change): Fix XI2 focus on GTK builds.
Date: Sun, 12 Dec 2021 01:20:55 -0500 (EST)

branch: master
commit 11b2dfca287dee4b4520d07e3ad6432870059100
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    * src/xterm.c (x_detect_focus_change): Fix XI2 focus on GTK builds.
---
 src/xterm.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index 3d9dce2..0dc944f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5144,13 +5144,13 @@ x_detect_focus_change (struct x_display_info *dpyinfo, 
struct frame *frame,
         int focus_state
           = focus_frame ? focus_frame->output_data.x->focus_state : 0;
 
-       if (!((((xi_event->evtype == XI_Enter
-                || xi_event->evtype == XI_Leave)
-               && (((XIEnterEvent *) xi_event)->detail
-                   != XINotifyInferior)
-               && !(focus_state & FOCUS_EXPLICIT))
-              || xi_event->evtype == XI_FocusIn
-              || xi_event->evtype == XI_FocusOut)))
+       if (((((xi_event->evtype == XI_Enter
+               || xi_event->evtype == XI_Leave)
+              && (((XIEnterEvent *) xi_event)->detail
+                  != XINotifyInferior)
+              && !(focus_state & FOCUS_EXPLICIT))
+             || xi_event->evtype == XI_FocusIn
+             || xi_event->evtype == XI_FocusOut)))
          x_focus_changed ((xi_event->evtype == XI_Enter
                            || xi_event->evtype == XI_FocusIn
                            ? FocusIn : FocusOut),



reply via email to

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