From 3b807e482d4cda06eaebb78acd4694af9e239317 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 18 Dec 2020 13:09:35 +0100 Subject: [PATCH] tablet: do not show a cursor if no cursor surface was provided --- input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input.cpp b/input.cpp index f2847ad397..611c7c1827 100644 --- a/input.cpp +++ b/input.cpp @@ -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; }