Subject: bug#56305: 29.0.50; 'yes-or-no-p' deselects minibuffer frame

From: Eli Zaretskii <[email-masked]>
Date: Sun, 03 Jul 2022 19:17:21 +0300

> Date: Sun, 3 Jul 2022 16:09:43 +0000
> Cc: Eli Zaretskii <[email-masked]>, [email-masked], [email-masked]
> From: Alan Mackenzie <[email-masked]>
> 
> While debugging, is there any easy way of determining which frame
> currently has the focus?

Yes, call x_get_focus_frame (or just examine the value of
FRAME_DISPLAY_INFO (f)->x_focus_frame manually).