summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmevent.h
diff options
context:
space:
mode:
authorMikolaj Boc <mikolaj.boc@qt.io>2022-10-13 18:24:51 +0200
committerMikolaj Boc <mikolaj.boc@qt.io>2022-12-21 00:20:01 +0100
commit32666691c21cc91a3d7c7585dad711dc9743fdce (patch)
treefc981b05aa3fff66fd6a40929bb2ca8a2fbce5af /src/plugins/platforms/wasm/qwasmevent.h
parent09141ebad7109b90e5dfdbf3b065543b8be14641 (diff)
Move the window through the title bar element itself
The compositor is redundant in the process of moving the window. Have the title bar react to move all by itself. Additionally, a clearer structure in the window was introduced. The non-client area has been extracted into a separate class, as was the icon store and free DOM functions used across files. Since it was now easy, made the window maximize/restore on double click on the title element. Fixes: QTBUG-107626 Pick-to: 6.5 Change-Id: Iba7f207e46806ae7162656965892ae5a48ac5ebe Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmevent.h')
-rw-r--r--src/plugins/platforms/wasm/qwasmevent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qwasmevent.h b/src/plugins/platforms/wasm/qwasmevent.h
index 26b6b5f22a..7fe68ce6c8 100644
--- a/src/plugins/platforms/wasm/qwasmevent.h
+++ b/src/plugins/platforms/wasm/qwasmevent.h
@@ -110,6 +110,7 @@ QFlags<Qt::KeyboardModifier> getForEvent<EmscriptenKeyboardEvent>(
struct Q_CORE_EXPORT Event
{
EventType type;
+ emscripten::val currentTarget = emscripten::val::undefined();
};
struct Q_CORE_EXPORT MouseEvent : public Event