mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 23:01:30 +11:00
Merge pull request #19 from tomaka/nsview-fix
Fix WindowExt implemented on the wrong Window
This commit is contained in:
commit
fdf8a21125
|
@ -18,6 +18,18 @@ pub trait WindowExt {
|
||||||
fn get_nsview(&self) -> *mut c_void;
|
fn get_nsview(&self) -> *mut c_void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl WindowExt for Window {
|
||||||
|
#[inline]
|
||||||
|
fn get_nswindow(&self) -> *mut c_void {
|
||||||
|
self.window.get_nswindow()
|
||||||
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
fn get_nsview(&self) -> *mut c_void {
|
||||||
|
self.window.get_nsview()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Corresponds to `NSApplicationActivationPolicy`.
|
/// Corresponds to `NSApplicationActivationPolicy`.
|
||||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||||
pub enum ActivationPolicy {
|
pub enum ActivationPolicy {
|
||||||
|
|
Loading…
Reference in a new issue