diff options
author | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-07-20 14:29:06 +0200 |
---|---|---|
committer | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-07-27 14:08:08 +0200 |
commit | 19507dc6788f252cd0795d80d9a39d22f1306882 (patch) | |
tree | 5d8acf4982a0f380afb9addfcc783d86fb8f3bb6 /src/widgets | |
parent | 434595865bdeeb4a822621be40b18dfa3179b9c0 (diff) |
Deliver non-client area mouse events to WASM windows
QWasmCompositor now delivers non-client area mouse events to windows as
it should, which fixes a lot of issues with window manipulation. One of
such issues is re-docking of dock widgets.
Fixes: QTBUG-105092
Change-Id: I9de45b7e1b1a80b64387031eb0cc0b31a4be2571
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/widgets/qdockwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/widgets/qdockwidget.cpp b/src/widgets/widgets/qdockwidget.cpp index ec5e4d51d5..6072740db8 100644 --- a/src/widgets/widgets/qdockwidget.cpp +++ b/src/widgets/widgets/qdockwidget.cpp @@ -1079,14 +1079,14 @@ void QDockWidgetPrivate::nonClientAreaMouseEvent(QMouseEvent *event) if (state == nullptr || !state->dragging) break; -#ifndef Q_OS_MAC +#if !defined(Q_OS_MAC) && !defined(Q_OS_WASM) if (state->nca) { endDrag(); } #endif break; case QEvent::NonClientAreaMouseButtonRelease: -#ifdef Q_OS_MAC +#if defined(Q_OS_MAC) || defined(Q_OS_WASM) if (state) endDrag(); #endif |