mirror of
https://github.com/wez/wezterm.git
synced 2024-09-20 11:17:15 +03:00
window: macos set gl layer placement to top-left
This commit is contained in:
parent
89dfeb69d6
commit
fb72338689
@ -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 })
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user