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:
parent
8030e8cf47
commit
3bf412feff
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue