summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2022-04-13 21:55:28 +0200
committerMorten Sørvig <morten.sorvig@qt.io>2022-04-25 15:42:20 +0200
commit029f90f7ea70282f4a213c912f36052f3b054259 (patch)
tree8678e7fd3993f187416f574cb64dc8a2c22e22d4 /src/plugins/platforms
parent7616e4aecf7c7c9a9db4f4ca1524c56771c9c732 (diff)
wasm: initialize htmlCursorName to "default"
The canvas cursor should always be restored to "default" if no cursor is set, otherwise we get the I-beam cursor since the canvas is contenteditable. The code which handles setting and restoring the override cursors handles this correctly, however we also need to set the default htmlCursorName for cases where setOverrideWasmCursor() is not called. Pick-to: 6.3 Change-Id: I23be7847d3a30ab78e3a8c9ec402285246bfefec Reviewed-by: David Skoland <david.skoland@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/wasm/qwasmcursor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qwasmcursor.h b/src/plugins/platforms/wasm/qwasmcursor.h
index b8aef841b4..824be3876f 100644
--- a/src/plugins/platforms/wasm/qwasmcursor.h
+++ b/src/plugins/platforms/wasm/qwasmcursor.h
@@ -41,7 +41,7 @@ public:
static void setOverrideWasmCursor(QCursor *windowCursor, QScreen *screen);
static void clearOverrideWasmCursor(QScreen *screen);
private:
- QByteArray htmlCursorName;
+ QByteArray htmlCursorName = "default";
void setWasmCursor(QScreen *screen, const QByteArray &name);
};