diff --git a/src/wayland/seat_interface.cpp b/src/wayland/seat_interface.cpp index bb2f4e1f82..dd493e2c4b 100644 --- a/src/wayland/seat_interface.cpp +++ b/src/wayland/seat_interface.cpp @@ -164,6 +164,7 @@ SeatInterface::Private *SeatInterface::Private::cast(wl_resource *r) return r ? reinterpret_cast(wl_resource_get_user_data(r)) : nullptr; } +namespace { template static T *interfaceForSurface(SurfaceInterface *surface, const QVector &interfaces) @@ -179,6 +180,7 @@ T *interfaceForSurface(SurfaceInterface *surface, const QVector &interfaces) } return nullptr; } +} PointerInterface *SeatInterface::Private::pointerForSurface(SurfaceInterface *surface) const { @@ -532,6 +534,7 @@ QPointF SeatInterface::focusedPointerSurfacePosition() const return d->globalPointer.focus.offset; } +namespace { static quint32 qtToWaylandButton(Qt::MouseButton button) { static const QHash s_buttons({ @@ -555,6 +558,7 @@ static quint32 qtToWaylandButton(Qt::MouseButton button) }); return s_buttons.value(button, 0); } +} bool SeatInterface::isPointerButtonPressed(Qt::MouseButton button) const {