Subject: bug#64658: 30.0.50; NotifyGrab and NotifyUngrab should be filtered with XInput2

From: Po Lu <[email-masked]>
Date: Mon, 17 Jul 2023 07:26:39 +0800

Zigit Zo <[email-masked]> writes:

> They're both 0, so the ~mode~ member is chosen :( For convenient, posted
> all members when FocusIn event triggered, the last one is the cause of
> ~selected-frame~ changes.

So I gather that a corresponding XI_FocusOut event is sent after the
window manager shortcut completes, and `selected-frame' returns an
unexpected value only for the duration of the grab?

If so, there's no bug in Emacs: the other frame really is selected for
the duration of the shortcut.