diff options
| author | Po Lu | 2021-12-26 14:24:16 +0800 |
|---|---|---|
| committer | Po Lu | 2021-12-26 14:48:13 +0800 |
| commit | 50484ad7d78acb8358fb7da5b19cd17ef060d74e (patch) | |
| tree | f27153bdfa0fe4188ec4757bdab37f2d7b172a50 /src | |
| parent | 6866cf9c375777441c996a0217b8b573657207fb (diff) | |
| download | emacs-50484ad7d78acb8358fb7da5b19cd17ef060d74e.tar.gz emacs-50484ad7d78acb8358fb7da5b19cd17ef060d74e.zip | |
Only focus frame implicitly if focus flag is set
* src/xterm.c (x_detect_focus_change): Test for focus flag on
XI entry events.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 12c14e5e4f1..00cb04f005d 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, | |||
| 5246 | || xi_event->evtype == XI_Leave) | 5246 | || xi_event->evtype == XI_Leave) |
| 5247 | && (((XIEnterEvent *) xi_event)->detail | 5247 | && (((XIEnterEvent *) xi_event)->detail |
| 5248 | != XINotifyInferior) | 5248 | != XINotifyInferior) |
| 5249 | && ((XIEnterEvent *) xi_event)->focus | ||
| 5249 | && !(focus_state & FOCUS_EXPLICIT)) | 5250 | && !(focus_state & FOCUS_EXPLICIT)) |
| 5250 | x_focus_changed ((xi_event->evtype == XI_Enter | 5251 | x_focus_changed ((xi_event->evtype == XI_Enter |
| 5251 | ? FocusIn : FocusOut), | 5252 | ? FocusIn : FocusOut), |