summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cocoa_in_gtk2.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cocoa_in_gtk2.mm b/src/cocoa_in_gtk2.mm
index 42d1cd2..2ab0f66 100644
--- a/src/cocoa_in_gtk2.mm
+++ b/src/cocoa_in_gtk2.mm
@@ -116,8 +116,8 @@ suil_cocoa_size_request(GtkWidget* widget, GtkRequisition* requisition)
} else {
NSView* view = (NSView*)self->instance->ui_widget;
NSRect frame = [view frame];
- requisition->width = CGRectGetWidth(frame);
- requisition->height = CGRectGetHeight(frame);
+ requisition->width = CGRectGetWidth(NSRectToCGRect(frame));
+ requisition->height = CGRectGetHeight(NSRectToCGRect(frame));
}
}