Changeset View
Changeset View
Standalone View
Standalone View
src/server/pointer_interface.cpp
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | |||||
100 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | 100 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | ||
101 | const struct wl_pointer_interface PointerInterface::Private::s_interface = { | 101 | const struct wl_pointer_interface PointerInterface::Private::s_interface = { | ||
102 | setCursorCallback, | 102 | setCursorCallback, | ||
103 | releaseCallback | 103 | releaseCallback | ||
104 | }; | 104 | }; | ||
105 | #endif | 105 | #endif | ||
106 | 106 | | |||
107 | PointerInterface::PointerInterface(SeatInterface *parent, wl_resource *parentResource) | 107 | PointerInterface::PointerInterface(SeatInterface *parent, wl_resource *parentResource) | ||
108 | : Resource(new Private(parent, parentResource, this), parent) | 108 | : Resource(new Private(parent, parentResource, this)) | ||
109 | { | 109 | { | ||
110 | // TODO: handle touch | 110 | // TODO: handle touch | ||
111 | connect(parent, &SeatInterface::pointerPosChanged, this, [this] { | 111 | connect(parent, &SeatInterface::pointerPosChanged, this, [this] { | ||
112 | Q_D(); | 112 | Q_D(); | ||
113 | if (d->seat->isDragPointer()) { | 113 | if (d->seat->isDragPointer()) { | ||
114 | // handled by DataDevice | 114 | // handled by DataDevice | ||
115 | return; | 115 | return; | ||
116 | } | 116 | } | ||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |