Revert "wasm: Hide popups when a window is left-clicked"

This reverts commit 0921caf976.

Reason for revert: This change breaks mouse press handling in popups themselves. I'll make another solution.

Change-Id: Ib9fd41f3f078e6abf22e5b0f75724d4acc737ead
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
David Skoland 2021-10-28 11:01:15 +00:00
parent 7531994379
commit d685c4682b

View File

@ -192,9 +192,6 @@ void QWasmWindow::injectMousePressed(const QPoint &local, const QPoint &global,
else if (normButtonRect().contains(global))
m_activeControl = QWasmCompositor::SC_TitleBarNormalButton;
if (button == Qt::LeftButton)
QGuiApplicationPrivate::instance()->closeAllPopups();
invalidate();
}