Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/wayland/wayland_backend.cpp
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Line(s) | 191 | { | |||
---|---|---|---|---|---|
204 | } | 204 | } | ||
205 | // place the sub-surface relative to the output it is on and factor in the hotspot | 205 | // place the sub-surface relative to the output it is on and factor in the hotspot | ||
206 | const auto relativePosition = globalPosition.toPoint() - backend()->softwareCursorHotspot() - m_output->geometry().topLeft(); | 206 | const auto relativePosition = globalPosition.toPoint() - backend()->softwareCursorHotspot() - m_output->geometry().topLeft(); | ||
207 | m_subSurface->setPosition(relativePosition); | 207 | m_subSurface->setPosition(relativePosition); | ||
208 | Compositor::self()->addRepaintFull(); | 208 | Compositor::self()->addRepaintFull(); | ||
209 | } | 209 | } | ||
210 | 210 | | |||
211 | WaylandSeat::WaylandSeat(wl_seat *seat, WaylandBackend *backend) | 211 | WaylandSeat::WaylandSeat(wl_seat *seat, WaylandBackend *backend) | ||
212 | : QObject(NULL) | 212 | : QObject(nullptr) | ||
213 | , m_seat(new Seat(this)) | 213 | , m_seat(new Seat(this)) | ||
214 | , m_pointer(NULL) | 214 | , m_pointer(nullptr) | ||
215 | , m_keyboard(NULL) | 215 | , m_keyboard(nullptr) | ||
216 | , m_touch(nullptr) | 216 | , m_touch(nullptr) | ||
217 | , m_enteredSerial(0) | 217 | , m_enteredSerial(0) | ||
218 | , m_backend(backend) | 218 | , m_backend(backend) | ||
219 | { | 219 | { | ||
220 | m_seat->setup(seat); | 220 | m_seat->setup(seat); | ||
221 | connect(m_seat, &Seat::hasKeyboardChanged, this, | 221 | connect(m_seat, &Seat::hasKeyboardChanged, this, | ||
222 | [this](bool hasKeyboard) { | 222 | [this](bool hasKeyboard) { | ||
223 | if (hasKeyboard) { | 223 | if (hasKeyboard) { | ||
▲ Show 20 Lines • Show All 628 Lines • Show Last 20 Lines |