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:
committed by
Julia
co-authored by
Antonio Scandurra
Nathan Sobo
parent
8030e8cf47
commit
3bf412feff
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user