tablet: do not show a cursor if no cursor surface was provided
This commit is contained in:
parent
1a32c64603
commit
3b807e482d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue