diff options
author | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-12-20 15:56:49 +0100 |
---|---|---|
committer | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-12-22 19:39:00 +0100 |
commit | c15a8750bcce3d4dabeebcc8bb4c15db31c7f637 (patch) | |
tree | 6e9eccefbe350488b4c2d51fbd142a0b19e86d19 /src/plugins/platforms/wasm/qwasmevent.h | |
parent | cf2651ae80a34b388a6bbb41b5e62c7b352e8a80 (diff) |
Handle the mouse events in the window itself
It is now not the screen that handles all of the events and relays
them to individual windows, but the window elements themselves.
This allows us to get rid of manual window targeting logic and let
the browser do its job.
Fixes: QTBUG-107217
Pick-to: 6.5
Change-Id: I4dc5a74b1343f027f72c1da4623b99cd28bfbb38
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qwasmevent.h b/src/plugins/platforms/wasm/qwasmevent.h index 7fe68ce6c8..f9d6411d60 100644 --- a/src/plugins/platforms/wasm/qwasmevent.h +++ b/src/plugins/platforms/wasm/qwasmevent.h @@ -110,7 +110,7 @@ QFlags<Qt::KeyboardModifier> getForEvent<EmscriptenKeyboardEvent>( struct Q_CORE_EXPORT Event { EventType type; - emscripten::val currentTarget = emscripten::val::undefined(); + emscripten::val target = emscripten::val::undefined(); }; struct Q_CORE_EXPORT MouseEvent : public Event |