Module: wine Branch: master Commit: 88a09dd3348c57595e7076d705af25fc0e9267ab URL: https://gitlab.winehq.org/wine/wine/-/commit/88a09dd3348c57595e7076d705af25f...
Author: Brendan Shanks bshanks@codeweavers.com Date: Mon Apr 17 14:27:57 2023 -0700
winemac: Set the Cocoa window contentMaxSize to the size limits from constrain_window_frame().
---
dlls/winemac.drv/window.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c index 2a7998762ac..a3690585127 100644 --- a/dlls/winemac.drv/window.c +++ b/dlls/winemac.drv/window.c @@ -641,6 +641,8 @@ static void sync_window_min_max_info(HWND hwnd) max_size = CGSizeMake(max_rect.right - max_rect.left, max_rect.bottom - max_rect.top); }
+ constrain_window_frame(NULL, &max_size); + TRACE("min_size (%g,%g) max_size (%g,%g)\n", min_size.width, min_size.height, max_size.width, max_size.height); macdrv_set_window_min_max_sizes(data->cocoa_window, min_size, max_size); }