From a8867e292d2d1d22fcc9cbf0cf72627bf4445abc Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 15 Apr 2021 02:35:54 +0200 Subject: [PATCH] tablet: Show a default cursor when the cursor has not been set In this context, the cursor will (almost) always be defined as we set it as soon as an application is bound to it. We need to show the default cursor if set_cursor hasn't been called yet. The way to do that is to check whether the serial is still. --- src/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.cpp b/src/input.cpp index 6d34839032..96feb2862a 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -1687,7 +1687,7 @@ public: return ret; }; static const auto defaultCursor = createDefaultCursor(); - if (!tcursor) { + if (!tcursor || tcursor->enteredSerial() == 0) { cursor->updateCursor(defaultCursor.image, defaultCursor.hotspot); return; }