summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/winrt_winphone/qmake.conf
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2016-10-26 16:52:41 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2016-10-28 08:04:26 +0000
commit1ad6ae21f015ead3dcc4bed21a988f0d7d5d0d2d (patch)
tree3e05f23c6ba3fe915efe4ae634eb799fa897f9b8 /mkspecs/common/winrt_winphone/qmake.conf
parente39a436d0ca00fbcbef1428e32f74266c7a8d34d (diff)
macOS: Allow windows to be created on any screen within the virtual desktop
Setting the geometry of a window to a position outside of the primary screen, but within the virtual desktop, would not result in the window being created on the secondary screen, as macOS does not seem to translate the global screen position when creating new windows. We work around this by translating the position ourselves, and using the overload of [NSWindow initWithContentRect:] that takes the NSScreen to create the window on. Due to a bug in the macOS window manger, this fails for windows that are created within a certain region of rotated screens. This is not an issue for setting the geometry after creating a window, so we should investigate making the window-creation code set its geometry via the same code path, after creating the window (without having the window momentarily show up in the wrong position). Change-Id: Iba8eefe65e2c91667856299d90a8606e361ceacb Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'mkspecs/common/winrt_winphone/qmake.conf')
0 files changed, 0 insertions, 0 deletions