Convert window frame rect to screen coordinates

Antonio Scandurra created

Change summary

crates/gpui/src/platform/mac/window.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

Detailed changes

crates/gpui/src/platform/mac/window.rs 🔗

@@ -406,8 +406,12 @@ impl Window {
                                 - top_left_bounds.height(),
                         ),
                         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);
                 }
             }