Revert "wasm: Hide popups when a window is left-clicked"
This reverts commit 0921caf9769c84192c539db22085d343f1a4b5b1. 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:
parent
7531994379
commit
d685c4682b
@ -192,9 +192,6 @@ void QWasmWindow::injectMousePressed(const QPoint &local, const QPoint &global,
|
|||||||
else if (normButtonRect().contains(global))
|
else if (normButtonRect().contains(global))
|
||||||
m_activeControl = QWasmCompositor::SC_TitleBarNormalButton;
|
m_activeControl = QWasmCompositor::SC_TitleBarNormalButton;
|
||||||
|
|
||||||
if (button == Qt::LeftButton)
|
|
||||||
QGuiApplicationPrivate::instance()->closeAllPopups();
|
|
||||||
|
|
||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user