Changeset View
Changeset View
Standalone View
Standalone View
src/server/subcompositor_interface.cpp
Show First 20 Lines • Show All 323 Lines • ▼ Show 20 Line(s) | 315 | { | |||
---|---|---|---|---|---|
324 | if (!d->parent->subSurface().isNull()) { | 324 | if (!d->parent->subSurface().isNull()) { | ||
325 | // follow parent's mode | 325 | // follow parent's mode | ||
326 | return d->parent->subSurface()->isSynchronized(); | 326 | return d->parent->subSurface()->isSynchronized(); | ||
327 | } | 327 | } | ||
328 | // parent is no subsurface, thus parent is in desync mode and this surface is in desync mode | 328 | // parent is no subsurface, thus parent is in desync mode and this surface is in desync mode | ||
329 | return false; | 329 | return false; | ||
330 | } | 330 | } | ||
331 | 331 | | |||
332 | QPointer<SurfaceInterface> SubSurfaceInterface::mainSurface() const | ||||
333 | { | ||||
334 | Q_D(); | ||||
335 | if (d->parent->d_func()->subSurface) { | ||||
336 | return d->parent->d_func()->subSurface->mainSurface(); | ||||
337 | } | ||||
338 | return d->parent; | ||||
339 | } | ||||
340 | | ||||
332 | SubSurfaceInterface::Private *SubSurfaceInterface::d_func() const | 341 | SubSurfaceInterface::Private *SubSurfaceInterface::d_func() const | ||
333 | { | 342 | { | ||
334 | return reinterpret_cast<SubSurfaceInterface::Private*>(d.data()); | 343 | return reinterpret_cast<SubSurfaceInterface::Private*>(d.data()); | ||
335 | } | 344 | } | ||
336 | 345 | | |||
337 | } | 346 | } | ||
338 | } | 347 | } |