Files
oak-gpui/crates
Junkui ZhangandKenny fbb402ef12 windows: Remove the use of DispatcherQueue and fix FileSaveDialog unresponsive issue (#17946)
Closes #17069, closes #12410


With the help of @kennykerr (Creator of C++/WinRT and the crate
`windows-rs`, Engineer on the Windows team at Microsoft) and @riverar
(Windows Development expert), we discovered that this bug only occurs
when an IME with a candidate window, such as Microsoft Pinyin IME, is
active. In this case, the `FileSaveDialog` becomes unresponsive—while
the dialog itself appears to be functioning, it doesn't accept any mouse
or keyboard input.

After a period of debugging and testing, I found that this issue only
arises when using `DispatcherQueue` to dispatch runnables on the UI
thread. After @kennykerr’s further investigation, Kenny identified that
this is a bug with `DispatcherQueue`, and he recommended to avoid using
`DispatcherQueue`. Given the uncertainty about whether Microsoft will
address this bug in the foreseeable future, I have removed the use of
`DispatcherQueue`.

Co-authored-by: Kenny <kenny@kennykerr.ca>

Release Notes:

- N/A

---------

Co-authored-by: Kenny <kenny@kennykerr.ca>
2024-09-17 15:45:08 -07:00
..
2024-09-17 14:13:37 -06:00
2024-09-13 13:17:49 -04:00
2024-09-13 13:17:49 -04:00
2024-08-13 23:06:07 -07:00
2024-09-13 13:17:49 -04:00
2024-09-16 12:22:39 -06:00
2024-07-15 17:04:15 -06:00
2024-09-17 15:37:56 -07:00
2024-09-17 15:37:56 -07:00
2024-09-17 14:13:37 -06:00
2024-09-17 14:13:37 -06:00
2024-09-17 15:37:56 -07:00
2024-09-07 19:58:28 -04:00
2024-09-17 11:19:07 -04:00
2024-09-16 08:29:46 -04:00