summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qapplication_qpa.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/kernel/qapplication_qpa.cpp b/src/gui/kernel/qapplication_qpa.cpp
index 42907ae..a433ccd 100644
--- a/src/gui/kernel/qapplication_qpa.cpp
+++ b/src/gui/kernel/qapplication_qpa.cpp
@@ -828,12 +828,14 @@ void QApplicationPrivate::processLeaveEvent(QWindowSystemInterfacePrivate::Leave
void QApplicationPrivate::processMoveEvent(QWindowSystemInterfacePrivate::MoveEvent *moveEvent)
{
- QMoveEvent e(moveEvent->moved.data()->geometry().topLeft(), moveEvent->newPos);
- QApplication::sendSpontaneousEvent(moveEvent->moved.data(), &e);
+ moveEvent->moved.data()->data->crect.setTopLeft(moveEvent->newPos);
+ QMoveEvent e(moveEvent->moved.data()->geometry().topLeft(), moveEvent->newPos);
+ QApplication::sendSpontaneousEvent(moveEvent->moved.data(), &e);
}
void QApplicationPrivate::processResizeEvent(QWindowSystemInterfacePrivate::ResizeEvent *e)
{
+ e->sizeChanged.data()->data->crect.setSize(e->newSize);
QResizeEvent resizeEvent(e->sizeChanged.data()->data->crect.size(), e->newSize);
QApplication::sendSpontaneousEvent(e->sizeChanged.data(), &resizeEvent);
e->sizeChanged.data()->update();