1
1
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:
Wez Furlong 2021-05-05 22:27:53 -07:00
parent 89dfeb69d6
commit fb72338689

View File

@ -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 })
}
}