summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_common.prf
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2016-04-13 17:09:06 +0200
committerQt Bot <torarnv-bot@codereview.qt-project.org>2016-04-13 15:46:56 +0000
commitb808c0099ac5880ef06f419c1017146ce40953d1 (patch)
treefedd06073e2ab40c6177bba28a2512302315edbb /mkspecs/features/qt_common.prf
parent17ad6e2a93f93aaa948c1286b3cad785e7f38808 (diff)
OS X: Fix available geometry at startup when menu bar is hidden
Later versions of OS X allow you to auto-hide the menu bar, which should free up 22 pixels vertically at the top of the screen in the available geometry. Due to how the NSScreens are invalidated (asynchronously), we pick up this geometry change too late, resulting in QWindows maximizing as if the menu bar was still there. To work around this we explicitly tell the system to apply the default presentation options before initializing the QScreen properties, which results in the NSScreen being invalidated synchronously and having the right available geometry. Change-Id: I40d6ef2211165d53e0825173e3b6c6c17a5a954e Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
Diffstat (limited to 'mkspecs/features/qt_common.prf')
0 files changed, 0 insertions, 0 deletions