diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2019-11-08 02:19:02 +0100 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2019-12-03 14:54:15 +0000 |
commit | 4d796cbf17da28e72ad25760a2ee8c27af96c202 (patch) | |
tree | daf6743168183c1d5a52d3ef0c021feda68eb962 /src/plugins/styles/mac | |
parent | c625d923853d01ad668dd3e8ebd55b7e5a6bcdb8 (diff) |
Prevent emscripten_webgl_destroy_context from removing event handlers
The JavaScript implementation of that function has
the following code:
if (typeof JSEvents === 'object')
JSEvents.removeAllHandlersOnTarget(GL.contexts[contextHandle].GLctx.canvas); // Release all
// JS event handlers on the DOM element that the GL context is associated with since the context
// is now deleted.
This breaks mouse/keyboard events, etc.
Disable this logic by temporarily setting the JSEvents object
to undefined, for the duration of the emscripten_webgl_destroy_context
call.
Fixes: QTBUG-74850
Change-Id: Ied3177b0ca6e63e8ea07143bf7d6a850b0bce35a
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/plugins/styles/mac')
0 files changed, 0 insertions, 0 deletions