Subject: bug#53629: 27.1: add option to change face `mode-line-buffer-id` when mode-line is inactive

From: martin rudalics <[email-masked]>
Date: Fri, 4 Feb 2022 10:58:08 +0100

> Thanks, Lars. I tried this approach and it's almost perfect. The only thing
 > I noticed is that when I use M-x or C-s, and the focus is on the echo area,
 > the last active buffer (the one I was before pressing M-x or C-s) doesn't
 > use the `mode-line-buffer-id-active` face.

Instead of

 >>                        (if (eq (selected-window)
 >>                                      (old-selected-window))

try

(if (memq (selected-window) `(,(old-selected-window) ,(minibuffer-selected-window)))

martin