diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-05-18 01:08:21 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-05-29 10:54:21 +0000 |
commit | dd8e73504edbf71808d6585b7a08daddcdcbf18e (patch) | |
tree | cb627076fe7cd2015be262f8d982e4b386dd0efb /src/angle/patches | |
parent | 0b1342f374308f9d820153f694e75334b39780f6 (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 <morten.sorvig@qt.io>
Diffstat (limited to 'src/angle/patches')
0 files changed, 0 insertions, 0 deletions