From c8a37ef27f9217e3b416afd2721d66bf2adac456 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 2 Jul 2021 20:54:57 +0200 Subject: [PATCH] tablet: use the right scope for the variable --- src/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.cpp b/src/input.cpp index 29e770de9c..56c3b1a22b 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -1701,8 +1701,8 @@ public: defaultCursor.loadThemeCursor(CursorShape(Qt::CrossCursor), &ret); return ret; }; - static const auto defaultCursor = createDefaultCursor(); if (!tcursor || tcursor->enteredSerial() == 0) { + static const auto defaultCursor = createDefaultCursor(); cursor->updateCursor(defaultCursor.image, defaultCursor.hotspot); return; }