Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic with Narrator on Windows when transferring narrator focus
The action requests on Windows typically come in from a non-main thread, so we'd try to clone the send wrapper in `do_action` in a non-main thread. That panics unfortunately - send-wrapper requires the clone to be done in the original thread. To work around this, wrap the send-wrapper in an Arc, which we can safely clone. Then inside the closure invoked from within the main thread, we can clone the send wrapper safely and then take out the Weak from it (safely as well).
- Loading branch information