Changeset View
Changeset View
Standalone View
Standalone View
src/server/pointer_interface.cpp
Show First 20 Lines • Show All 346 Lines • ▼ Show 20 Line(s) | |||||
347 | { | 347 | { | ||
348 | Q_D(); | 348 | Q_D(); | ||
349 | if (d->relativePointers.isEmpty()) { | 349 | if (d->relativePointers.isEmpty()) { | ||
350 | return; | 350 | return; | ||
351 | } | 351 | } | ||
352 | for (auto it = d->relativePointers.constBegin(), end = d->relativePointers.constEnd(); it != end; it++) { | 352 | for (auto it = d->relativePointers.constBegin(), end = d->relativePointers.constEnd(); it != end; it++) { | ||
353 | (*it)->relativeMotion(delta, deltaNonAccelerated, microseconds); | 353 | (*it)->relativeMotion(delta, deltaNonAccelerated, microseconds); | ||
354 | } | 354 | } | ||
355 | client()->flush(); | 355 | d->sendFrame(); | ||
356 | } | 356 | } | ||
357 | 357 | | |||
358 | PointerInterface::Private *PointerInterface::d_func() const | 358 | PointerInterface::Private *PointerInterface::d_func() const | ||
359 | { | 359 | { | ||
360 | return reinterpret_cast<Private*>(d.data()); | 360 | return reinterpret_cast<Private*>(d.data()); | ||
361 | } | 361 | } | ||
362 | 362 | | |||
363 | PointerInterface *PointerInterface::get(wl_resource *native) | 363 | PointerInterface *PointerInterface::get(wl_resource *native) | ||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |