summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindowsysteminterface.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-04-15 14:00:10 +0200
committerPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-04-15 15:27:48 +0200
commit4e541c356943fa304b2841b5234a689c4cc93f45 (patch)
tree9a8b75be9b14229ccbf9edd4541ac7305931d5dd /src/gui/kernel/qwindowsysteminterface.cpp
parent9897e1a2bdec3b1cae1d17fd3adaa44bca9f96cc (diff)
Fix screen detection on configureNotify
If we got two rapid screen changes in a row, we would disregard the second change. This happens because QPlatformScreen::screen() is updated asynchronously, so if we got a screen change A --> B immediately followed by B --> A, before the first screen change event had been processed, we would compare with the old value and conclude nothing had changed. This can happen on creation: if the initial geometry of the window is outside all physical screens, the window manager will immediately move it. The solution is to compare the new screen to the locally cached value. Change-Id: I5440dc035cac4fba4f29ac563e36dfe3e2f82aea Task-number: QTBUG-45076
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface.cpp')
0 files changed, 0 insertions, 0 deletions