mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 13:10:54 +00:00
Convert window frame rect to screen coordinates
This commit is contained in:
parent
5984be3d84
commit
f611b443c0
1 changed files with 5 additions and 1 deletions
|
@ -406,8 +406,12 @@ impl Window {
|
||||||
- top_left_bounds.height(),
|
- top_left_bounds.height(),
|
||||||
),
|
),
|
||||||
top_left_bounds.size(),
|
top_left_bounds.size(),
|
||||||
|
)
|
||||||
|
.to_ns_rect();
|
||||||
|
native_window.setFrame_display_(
|
||||||
|
native_window.convertRectToScreen_(bottom_left_bounds),
|
||||||
|
YES,
|
||||||
);
|
);
|
||||||
native_window.setFrame_display_(bottom_left_bounds.to_ns_rect(), YES);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue