Convert window frame rect to screen coordinates

This commit is contained in:
Antonio Scandurra 2022-10-26 14:27:53 +02:00
parent 5984be3d84
commit f611b443c0

View file

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