summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxwindow.cpp')
-rw-r--r--src/plugins/platforms/qnx/qqnxwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/platforms/qnx/qqnxwindow.cpp b/src/plugins/platforms/qnx/qqnxwindow.cpp
index c668a8867d..166cb499b0 100644
--- a/src/plugins/platforms/qnx/qqnxwindow.cpp
+++ b/src/plugins/platforms/qnx/qqnxwindow.cpp
@@ -179,9 +179,13 @@ void QQnxWindow::setGeometry(const QRect &rect)
m_platformOpenGLContext->requestSurfaceChange();
}
- // Send a geometry change event to Qt (triggers resizeEvent() in QWindow/QWidget)
+ // Send a geometry change event to Qt (triggers resizeEvent() in QWindow/QWidget).
+
+ // Calling flushWindowSystemEvents() here would flush input events which
+ // could result in re-entering QQnxWindow::setGeometry() again.
+ QWindowSystemInterface::setSynchronousWindowsSystemEvents(true);
QWindowSystemInterface::handleGeometryChange(window(), rect);
- QWindowSystemInterface::flushWindowSystemEvents();
+ QWindowSystemInterface::setSynchronousWindowsSystemEvents(false);
// Now move all children.
if (!oldGeometry.isEmpty()) {