Changeset View
Changeset View
Standalone View
Standalone View
src/server/subcompositor_interface.cpp
Show First 20 Lines • Show All 354 Lines • ▼ Show 20 Line(s) | 343 | { | |||
---|---|---|---|---|---|
355 | } | 355 | } | ||
356 | // parent is no subsurface, thus parent is in desync mode and this surface is in desync mode | 356 | // parent is no subsurface, thus parent is in desync mode and this surface is in desync mode | ||
357 | return false; | 357 | return false; | ||
358 | } | 358 | } | ||
359 | 359 | | |||
360 | QPointer<SurfaceInterface> SubSurfaceInterface::mainSurface() const | 360 | QPointer<SurfaceInterface> SubSurfaceInterface::mainSurface() const | ||
361 | { | 361 | { | ||
362 | Q_D(); | 362 | Q_D(); | ||
363 | if (!d->parent) { | ||||
364 | return QPointer<SurfaceInterface>(); | ||||
365 | } | ||||
363 | if (d->parent->d_func()->subSurface) { | 366 | if (d->parent->d_func()->subSurface) { | ||
364 | return d->parent->d_func()->subSurface->mainSurface(); | 367 | return d->parent->d_func()->subSurface->mainSurface(); | ||
365 | } | 368 | } | ||
366 | return d->parent; | 369 | return d->parent; | ||
367 | } | 370 | } | ||
368 | 371 | | |||
369 | SubSurfaceInterface::Private *SubSurfaceInterface::d_func() const | 372 | SubSurfaceInterface::Private *SubSurfaceInterface::d_func() const | ||
370 | { | 373 | { | ||
371 | return reinterpret_cast<SubSurfaceInterface::Private*>(d.data()); | 374 | return reinterpret_cast<SubSurfaceInterface::Private*>(d.data()); | ||
372 | } | 375 | } | ||
373 | 376 | | |||
374 | } | 377 | } | ||
375 | } | 378 | } |