Currently handle_foreground_lost() unacquires devices, but nothing on the path of NOTIFY_FOREGROUND_LOST unregisters raw input, and dinput continues hogging all the input preventing focused window (e. g., message box) from getting it.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3688