42 ,
public QtWaylandServer::wl_pointer
44 Q_DECLARE_PUBLIC(QWaylandPointer)
46 QWaylandPointerPrivate(QWaylandPointer *pointer, QWaylandSeat *seat);
48 QWaylandCompositor *compositor()
const {
return seat->compositor(); }
51 void pointer_set_cursor(Resource *resource, uint32_t serial, wl_resource *surface, int32_t hotspot_x, int32_t hotspot_y) override;
52 void pointer_release(Resource *resource) override;
55 uint sendButton(Qt::MouseButton button, uint32_t state);
57 void sendEnter(QWaylandSurface *surface);
59 void ensureEntered(QWaylandSurface *surface);
61 QWaylandSeat *seat =
nullptr;
62 QWaylandOutput *output =
nullptr;
63 QPointer<QWaylandSurface> enteredSurface;
65 QPointF localPosition;
66 QPointF spacePosition;
72 QWaylandDestroyListener enteredSurfaceDestroyListener;
74 static QWaylandSurfaceRole s_role;