diff --git a/window/src/os/macos/window.rs b/window/src/os/macos/window.rs index 657b0c261..62f4f0232 100644 --- a/window/src/os/macos/window.rs +++ b/window/src/os/macos/window.rs @@ -187,6 +187,17 @@ impl GlContextPair { } }; + #[allow(non_upper_case_globals)] + unsafe { + use cocoa::foundation::NSInteger; + const NSViewLayerContentsPlacementTopLeft: NSInteger = 11; + + let () = msg_send![ + view, + setLayerContentsPlacement: NSViewLayerContentsPlacementTopLeft + ]; + } + Ok(Self { context, backend }) } }