From d685c4682bb7b7cd8e52f56982e7d50ce1698c46 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Thu, 28 Oct 2021 11:01:15 +0000 Subject: 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 --- src/plugins/platforms/wasm/qwasmwindow.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/plugins/platforms') diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp index 48d01ef6b5..42e08e6453 100644 --- a/src/plugins/platforms/wasm/qwasmwindow.cpp +++ b/src/plugins/platforms/wasm/qwasmwindow.cpp @@ -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(); } -- cgit v1.2.3