diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index e7433969d29..a6de34f3db6 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -2643,8 +2643,10 @@ candidate_window_p (Lisp_Object window, Lisp_Object owindow, | |||
| 2643 | /* To qualify as candidate, it's not sufficient for WINDOW's frame | 2643 | /* To qualify as candidate, it's not sufficient for WINDOW's frame |
| 2644 | to just share the minibuffer window - it must be active as well | 2644 | to just share the minibuffer window - it must be active as well |
| 2645 | (see Bug#24500). */ | 2645 | (see Bug#24500). */ |
| 2646 | candidate_p = (EQ (XWINDOW (all_frames)->frame, w->frame) | 2646 | candidate_p = ((EQ (XWINDOW (all_frames)->frame, w->frame) |
| 2647 | || EQ (XWINDOW (all_frames)->frame, FRAME_FOCUS_FRAME (f))); | 2647 | || (EQ (f->minibuffer_window, all_frames) |
| 2648 | && EQ (XWINDOW (all_frames)->frame, FRAME_FOCUS_FRAME (f)))) | ||
| 2649 | && !is_minibuffer (0, XWINDOW (all_frames)->contents)); | ||
| 2648 | else if (FRAMEP (all_frames)) | 2650 | else if (FRAMEP (all_frames)) |
| 2649 | candidate_p = EQ (all_frames, w->frame); | 2651 | candidate_p = EQ (all_frames, w->frame); |
| 2650 | 2652 | ||