mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Fixed macos
This commit is contained in:
parent
7f6ae8910e
commit
2def6d5fff
|
@ -51,14 +51,14 @@ impl From<ActivationPolicy> for NSApplicationActivationPolicy {
|
|||
}
|
||||
|
||||
/// Additional methods on `WindowBuilder` that are specific to MacOS.
|
||||
pub trait WindowBuilderExt<'a> {
|
||||
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder<'a>;
|
||||
pub trait WindowBuilderExt {
|
||||
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder;
|
||||
}
|
||||
|
||||
impl<'a> WindowBuilderExt<'a> for WindowBuilder<'a> {
|
||||
impl WindowBuilderExt for WindowBuilder {
|
||||
/// Sets the activation policy for the window being built
|
||||
#[inline]
|
||||
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder<'a> {
|
||||
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder {
|
||||
self.platform_specific.activation_policy = activation_policy;
|
||||
self
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue