diff options
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 1101764512..7e60689a2d 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -790,12 +790,22 @@ void QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePr QGuiApplication::sendSpontaneousEvent(window, &e); window->d_func()->resizeEventPending = false; + + if (cr.width() != newRect.width()) + window->widthChanged(cr.width()); + if (cr.height() != newRect.height()) + window->heightChanged(cr.height()); } if (isMove) { //### frame geometry QMoveEvent e(newRect.topLeft(), cr.topLeft()); QGuiApplication::sendSpontaneousEvent(window, &e); + + if (cr.x() != newRect.x()) + window->xChanged(cr.x()); + if (cr.y() != newRect.y()) + window->yChanged(cr.y()); } } |