wayland: Emulate tablet events only if there is pointer

If the seat has no pointer, there is no point for emulating tablet
events.
This commit is contained in:
Vlad Zahorodnii 2021-03-12 09:33:20 +02:00
parent 7b68644974
commit ee54fa7898

View file

@ -1776,7 +1776,7 @@ public:
bool emulateTabletEvent(TabletEvent *event)
{
if (!workspace()) {
if (!workspace() || !waylandServer()->seat()->hasPointer()) {
return false;
}