From cb8f62660eb29abf332d2503dc31ace0b7552ea8 Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Tue, 7 Mar 2023 14:29:45 +0100 Subject: Close popups on WASM window non-client area interactions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This mimics the behavior displayed by the Cocoa window Fixes: QTBUG-111436 Change-Id: I800fd15e870e54cf2c22ba5bd7f0c8b3f7f85bbf Reviewed-by: Piotr WierciƄski Reviewed-by: Lorn Potter --- src/plugins/platforms/wasm/qwasmwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/platforms/wasm/qwasmwindow.cpp') diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp index 6ec8c510d0..3772217cdb 100644 --- a/src/plugins/platforms/wasm/qwasmwindow.cpp +++ b/src/plugins/platforms/wasm/qwasmwindow.cpp @@ -162,6 +162,7 @@ void QWasmWindow::onNonClientAreaInteraction() { if (!isActive()) requestActivateWindow(); + QGuiApplicationPrivate::instance()->closeAllPopups(); } bool QWasmWindow::onNonClientEvent(const PointerEvent &event) -- cgit v1.2.3