Commit 3b807e48 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

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

parent 1a32c646
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment