summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qeventdispatcher_wasm_p.h
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2021-09-13 11:09:48 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2021-09-15 17:06:10 +0200
commit088b364e4b220ffe3acf28842444c6a80601f2bb (patch)
tree6d9715ea8e843d16560ec3bbe0dd178c2975ab79 /src/corelib/kernel/qeventdispatcher_wasm_p.h
parent46039092bdabcea76f5899b492e3429d6b571bfa (diff)
QEventDispatcherWasm: handle EventLoopExec
Call emscripten_set_main_loop like the old GUI event dispatcher did, with one difference that requestAnimationFrame updates are now no longer handled by the event dispatcher. Change-Id: If02d90ae9c45d7b38999567d733a237af842cded Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/kernel/qeventdispatcher_wasm_p.h')
-rw-r--r--src/corelib/kernel/qeventdispatcher_wasm_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_wasm_p.h b/src/corelib/kernel/qeventdispatcher_wasm_p.h
index 75db11723c..7eea28b052 100644
--- a/src/corelib/kernel/qeventdispatcher_wasm_p.h
+++ b/src/corelib/kernel/qeventdispatcher_wasm_p.h
@@ -90,6 +90,7 @@ private:
bool isMainThreadEventDispatcher();
bool isSecondaryThreadEventDispatcher();
+ void handleEventLoopExec();
void handleDialogExec();
void pollForNativeEvents();
bool waitForForEvents();