macOS: Close popups on mouse down using synchronous QPA delivery
Change-Id: I5ccb5ca4f9b9f7a480c575c5a2710ec20361cf88 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
cbd2973a19
commit
f529f94132
@ -398,8 +398,7 @@
|
|||||||
Qt::WindowType type = QCocoaIntegration::instance()->activePopupWindow()->window()->type();
|
Qt::WindowType type = QCocoaIntegration::instance()->activePopupWindow()->window()->type();
|
||||||
while (QCocoaWindow *popup = QCocoaIntegration::instance()->popPopupWindow()) {
|
while (QCocoaWindow *popup = QCocoaIntegration::instance()->popPopupWindow()) {
|
||||||
selfClosed = self == popup->view();
|
selfClosed = self == popup->view();
|
||||||
QWindowSystemInterface::handleCloseEvent(popup->window());
|
QWindowSystemInterface::handleCloseEvent<QWindowSystemInterface::SynchronousDelivery>(popup->window());
|
||||||
QWindowSystemInterface::flushWindowSystemEvents();
|
|
||||||
if (!m_platformWindow)
|
if (!m_platformWindow)
|
||||||
return; // Bail out if window was destroyed
|
return; // Bail out if window was destroyed
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user