diff options
Diffstat (limited to 'src/widgets/kernel/qapplication_qpa.cpp')
-rw-r--r-- | src/widgets/kernel/qapplication_qpa.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/kernel/qapplication_qpa.cpp b/src/widgets/kernel/qapplication_qpa.cpp index 5dc68e47e0..e8db364473 100644 --- a/src/widgets/kernel/qapplication_qpa.cpp +++ b/src/widgets/kernel/qapplication_qpa.cpp @@ -253,7 +253,8 @@ void QApplicationPrivate::openPopup(QWidget *popup) // Dispatch leave for last mouse receiver to update undermouse states if (qt_last_mouse_receiver && !QWidget::mouseGrabber()) { - QApplicationPrivate::dispatchEnterLeave(0, qt_last_mouse_receiver.data()); + QApplicationPrivate::dispatchEnterLeave(0, qt_last_mouse_receiver.data(), + QGuiApplicationPrivate::lastCursorPosition); qt_last_mouse_receiver = 0; } } |