Cocoa: Work around faulty screen list on startup
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Fri, 27 Jun 2014 14:29:23 +0000 (16:29 +0200)
committerShawn Rutledge <shawn.rutledge@digia.com>
Sun, 24 Aug 2014 20:19:57 +0000 (22:19 +0200)
commit7f1051ed62ad3bc39c064af001e89ebdccc26a7e
tree5f70fb63a0e81ca3a53d4bc022c1668a7ca7301a
parent3e68148a4dda31d35d12878407cf1d04451e4d3d
Cocoa: Work around faulty screen list on startup

The NSScreen API has been observed to a return a
screen list with one mirrored, non-primary screen
when Qt is running as a startup item. Always use
the screen if there's only one screen in the list.

Change-Id: I721e25bb7595599287b97f6528e04060ce5da6c1
Task-id: QTBUG-37878
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
src/plugins/platforms/cocoa/qcocoaintegration.mm