tablet: do not show a cursor if no cursor surface was provided

This commit is contained in:
Aleix Pol 2020-12-18 13:09:35 +01:00
parent 1a32c64603
commit 3b807e482d

View file

@ -1694,12 +1694,12 @@ public:
}
auto cursorSurface = tcursor->surface();
if (!cursorSurface) {
cursor->updateCursor(defaultCursor.image, defaultCursor.hotspot);
cursor->updateCursor({}, {});
return;
}
auto buffer = cursorSurface->buffer();
if (!buffer) {
cursor->updateCursor(defaultCursor.image, defaultCursor.hotspot);
cursor->updateCursor({}, {});
return;
}