diff --git a/src/pointer_input.cpp b/src/pointer_input.cpp index 2de29c26e6..6632524e97 100644 --- a/src/pointer_input.cpp +++ b/src/pointer_input.cpp @@ -55,7 +55,8 @@ static bool screenContainsPos(const QPointF &pos) { const auto outputs = workspace()->outputs(); for (const Output *output : outputs) { - if (output->geometry().contains(pos.toPoint())) { + if (output->geometry().contains(QPoint(std::floor(pos.x()), + std::floor(pos.y())))) { return true; } }