Fix 100s freeze on boot on X11 (#13156)

Release Notes:

- Fixed switching between dark and light mode with no windows open.
This commit is contained in:
Conrad Irwin 2024-06-17 12:44:32 -06:00 committed by GitHub
parent 7fe5c27597
commit eecbf203dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 23 additions and 62 deletions

View file

@ -1158,7 +1158,7 @@ impl<'a> WindowContext<'a> {
self.window.platform_window.is_fullscreen()
}
fn appearance_changed(&mut self) {
pub(crate) fn appearance_changed(&mut self) {
self.window.appearance = self.window.platform_window.appearance();
self.window