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

@ -346,6 +346,11 @@ impl PlatformWindow for WaylandWindow {
// todo(linux)
}
// todo(linux)
fn is_active(&self) -> bool {
false
}
fn set_title(&mut self, title: &str) {
self.0.toplevel.set_title(title.to_string());
}