path: root/src/gui/kernel
diff options
authorTor Arne Vestbø <>2018-05-18 01:08:21 +0200
committerTor Arne Vestbø <>2018-05-29 10:54:21 +0000
commitdd8e73504edbf71808d6585b7a08daddcdcbf18e (patch)
treecb627076fe7cd2015be262f8d982e4b386dd0efb /src/gui/kernel
parent0b1342f374308f9d820153f694e75334b39780f6 (diff)
macOS: Respect maximum window size when computing zoomed state geometry
AppKit will normally compute this automatically based on the contentMaxSize property of the NSWindow, which we set correctly based on the window's maximum size, but since we ignore the frame proposed by AppKit (due to not working for borderless windows), we need to take the maximum size into account ourselves. We follow the lead of QCocoaWindow::propagateSizeHints(), and interpret the window's maximum size as referring to the client area size, not including the frame geometry, but AppKit expects the NSWindow's frame, so we need to manually add the frame. In addition, AppKit expects the frame in the native coordinate system, so we need to map to it. This was an existing bug, that never manifested before taking the maximum size into account. Task-number: QTBUG-67376 Change-Id: Id4cf6ff5640610f809472e5b1d591b4ec17df602 Reviewed-by: Morten Johan Sørvig <>
Diffstat (limited to 'src/gui/kernel')
0 files changed, 0 insertions, 0 deletions