diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-07-02 13:21:00 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-07-05 20:07:09 +0000 |
commit | 6caaa050abb4e3dacc8c1ee377a59bb2373250d4 (patch) | |
tree | c6c58409cf365c1f8f2b1a028293b3d49750106c /tests | |
parent | 55fc9a5dd9b31bc31bc7ed1eab4db3a18be21f8d (diff) |
macOS: Ensure all windows are created on a valid screen
We rely on AppKit repositioning the window if the original position
is not on any of the available screens. We do this by keeping the
original position, but using the primary screen as reference.
This doesn't work unless the window has a title bar, so in the corner
case where the window has an invalid position, we apply the title bar
style mask for a brief moment, so that AppKit will place the window
correctly.
Task-number: QTBUG-69221
Change-Id: If66cac36bf36f051570ba5854951ce4504fe771f
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions