]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xterm.c (x_detect_focus_change): Fix XI2 focus on GTK builds.
authorPo Lu <luangruo@yahoo.com>
Sun, 12 Dec 2021 06:20:18 +0000 (14:20 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 12 Dec 2021 06:20:18 +0000 (14:20 +0800)
src/xterm.c

index 3d9dce27e8236d8e74137df1c7edeb5c1467b4d9..0dc944fd81947e9950c188ca6399ae43a0bf670d 100644 (file)
@@ -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),