Windows: fix initial active status (#9694)

Separate from #9451

On Windows, a new window may already active immediate after creation.

Release Notes:

- N/A

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
白山風露 2024-03-26 03:44:18 +09:00 committed by GitHub
parent 78dc458231
commit 6231df978b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 24 additions and 1 deletions

View file

@ -188,6 +188,7 @@ pub(crate) trait PlatformWindow: HasWindowHandle + HasDisplayHandle {
answers: &[&str],
) -> Option<oneshot::Receiver<usize>>;
fn activate(&self);
fn is_active(&self) -> bool;
fn set_title(&mut self, title: &str);
fn set_edited(&mut self, edited: bool);
fn show_character_palette(&self);