From 97d4c7b303bb8110df6c492f0c2327b7d5098347 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Thu, 3 Nov 2022 22:33:38 +0100 Subject: [PATCH] macOS: Fix overridden fullscreen selectors (#2546) --- src/platform_impl/macos/window_delegate.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/platform_impl/macos/window_delegate.rs b/src/platform_impl/macos/window_delegate.rs index 539c6264..e328e59c 100644 --- a/src/platform_impl/macos/window_delegate.rs +++ b/src/platform_impl/macos/window_delegate.rs @@ -221,9 +221,9 @@ declare_class!( } /// Invoked when before enter fullscreen - #[sel(windowWillEnterFullscreen:)] + #[sel(windowWillEnterFullScreen:)] fn window_will_enter_fullscreen(&self, _: Option<&Object>) { - trace_scope!("windowWillEnterFullscreen:"); + trace_scope!("windowWillEnterFullScreen:"); let mut shared_state = self .window @@ -287,9 +287,9 @@ declare_class!( } /// Invoked when entered fullscreen - #[sel(windowDidEnterFullscreen:)] + #[sel(windowDidEnterFullScreen:)] fn window_did_enter_fullscreen(&mut self, _: Option<&Object>) { - trace_scope!("windowDidEnterFullscreen:"); + trace_scope!("windowDidEnterFullScreen:"); *self.initial_fullscreen = false; let mut shared_state = self.window.lock_shared_state("window_did_enter_fullscreen"); shared_state.in_fullscreen_transition = false; @@ -301,9 +301,9 @@ declare_class!( } /// Invoked when exited fullscreen - #[sel(windowDidExitFullscreen:)] + #[sel(windowDidExitFullScreen:)] fn window_did_exit_fullscreen(&self, _: Option<&Object>) { - trace_scope!("windowDidExitFullscreen:"); + trace_scope!("windowDidExitFullScreen:"); self.window.restore_state_from_fullscreen(); let mut shared_state = self.window.lock_shared_state("window_did_exit_fullscreen"); @@ -331,9 +331,9 @@ declare_class!( /// due to being in the midst of handling some other animation or user gesture. /// This method indicates that there was an error, and you should clean up any /// work you may have done to prepare to enter full-screen mode. - #[sel(windowDidFailToEnterFullscreen:)] + #[sel(windowDidFailToEnterFullScreen:)] fn window_did_fail_to_enter_fullscreen(&self, _: Option<&Object>) { - trace_scope!("windowDidFailToEnterFullscreen:"); + trace_scope!("windowDidFailToEnterFullScreen:"); let mut shared_state = self .window .lock_shared_state("window_did_fail_to_enter_fullscreen");