diff --git a/libinput/connection.cpp b/libinput/connection.cpp index bc11d52bd3..e749405658 100644 --- a/libinput/connection.cpp +++ b/libinput/connection.cpp @@ -567,8 +567,14 @@ void Connection::processEvents() capabilities << InputRedirection::Wheel; } + const auto *output = static_cast( + kwinApp()->platform()->enabledOutputs()[tte->device()->screenId()]); + const QPointF globalPos = + devicePointToGlobalPosition(tte->transformedPosition(output->modeSize()), + output); + emit tabletToolEvent(tabletEventType, - tte->transformedPosition(m_size), tte->pressure(), + globalPos, tte->pressure(), tte->xTilt(), tte->yTilt(), tte->rotation(), tte->isTipDown(), tte->isNearby(), serial, toolId, toolType, capabilities, tte->time(),