summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qguiapplication.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2017-01-17 15:56:05 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2017-01-17 22:18:22 +0000
commit2fe9f30512092cfb1928feaa9d3c56025c74f92a (patch)
tree97794f14eb3c7a0ec1acf6b38a95f531b88cbaae /src/gui/kernel/qguiapplication.cpp
parent04a74c362f786e6300deb912c0ad40996f8b3bc3 (diff)
macOS: Keep reference to NSScreen via index instead of pointer
Manual revert of 73e68a9c0f8b6, which was flawed. macOS can, and will, dealloc and realloc NSScreen instances for a given screen index, for example when deallocing an NSWindow, which has the screen as an auxiliary resource. This is also documented for +[NSScreen screens], which states that "The array should not be cached". Task-number: QTBUG-58128 Change-Id: I926513a26cb7af52acd7fc5ee9380ef29ede65e6 Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
0 files changed, 0 insertions, 0 deletions