windows: fix window activate action (#9664)

Now, the window activation event can be triggered correctly. As shown in
the video, when the window is activated, the caret blinks; when the
window loses activation due to me clicking on the PowerShell window, the
caret stops blinking.



https://github.com/zed-industries/zed/assets/14981363/4c1b2bec-319d-4f21-879e-5a0af0a00d8e



Release Notes:

- N/A
This commit is contained in:
张小白 2024-03-22 06:24:17 +08:00 committed by GitHub
parent eaa803298e
commit 4183805a39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 26 deletions

View file

@ -10,7 +10,6 @@ use std::{
path::{Path, PathBuf},
rc::Rc,
sync::{Arc, OnceLock},
time::Duration,
};
use ::util::{ResultExt, SemanticVersion};