tablet: Check if client is supported before sending tool button

BUG: 438010
This commit is contained in:
Ash Blake 2021-09-24 23:19:55 +02:00
parent ced2990c8a
commit 242de43737

View file

@ -1859,6 +1859,9 @@ public:
if (!tool) {
tool = createTool(tabletToolId);
}
if (!tool->isClientSupported()) {
return false;
}
tool->sendButton(button, pressed);
return true;
}