mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 23:01: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.
|
/// Additional methods on `WindowBuilder` that are specific to MacOS.
|
||||||
pub trait WindowBuilderExt<'a> {
|
pub trait WindowBuilderExt {
|
||||||
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder<'a>;
|
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
|
/// Sets the activation policy for the window being built
|
||||||
#[inline]
|
#[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.platform_specific.activation_policy = activation_policy;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue