43 ,
public QtWaylandServer::wl_pointer
45 Q_DECLARE_PUBLIC(QWaylandPointer)
47 QWaylandPointerPrivate(QWaylandPointer *pointer, QWaylandSeat *seat);
49 QWaylandCompositor *compositor()
const {
return seat->compositor(); }
52 void pointer_set_cursor(Resource *resource, uint32_t serial, wl_resource *surface, int32_t hotspot_x, int32_t hotspot_y) override;
53 void pointer_release(Resource *resource) override;
56 uint sendButton(Qt::MouseButton button, uint32_t state);
58 void sendEnter(QWaylandSurface *surface);
60 void ensureEntered(QWaylandSurface *surface);
62 QWaylandSeat *seat =
nullptr;
63 QWaylandOutput *output =
nullptr;
64 QPointer<QWaylandSurface> enteredSurface;
66 QPointF localPosition;
67 QPointF spacePosition;
73 QWaylandDestroyListener enteredSurfaceDestroyListener;
75 static QWaylandSurfaceRole s_role;