From 242de4373706324696a9bfe48b1ac9e2f7e2caa2 Mon Sep 17 00:00:00 2001 From: Ash Blake Date: Fri, 24 Sep 2021 23:19:55 +0200 Subject: [PATCH] tablet: Check if client is supported before sending tool button BUG: 438010 --- src/input.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input.cpp b/src/input.cpp index 56522ba98b..a583afab23 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -1859,6 +1859,9 @@ public: if (!tool) { tool = createTool(tabletToolId); } + if (!tool->isClientSupported()) { + return false; + } tool->sendButton(button, pressed); return true; }