Use window's screen rather than window itself to start display link

Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Julia 2024-02-05 10:46:07 -05:00 committed by Julia
parent 8030e8cf47
commit 3bf412feff

View File

@ -530,7 +530,7 @@ impl MacWindow {
let native_view = NSView::init(native_view);
assert!(!native_view.is_null());
let display_link = start_display_link(native_window, native_view);
let display_link = start_display_link(native_window.screen(), native_view);
let window = Self(Arc::new(Mutex::new(MacWindowState {
handle,