Changeset View
Changeset View
Standalone View
Standalone View
src/server/surface_interface.cpp
Show All 21 Lines | |||||
22 | #include "buffer_interface.h" | 22 | #include "buffer_interface.h" | ||
23 | #include "clientconnection.h" | 23 | #include "clientconnection.h" | ||
24 | #include "compositor_interface.h" | 24 | #include "compositor_interface.h" | ||
25 | #include "idleinhibit_interface_p.h" | 25 | #include "idleinhibit_interface_p.h" | ||
26 | #include "pointerconstraints_interface_p.h" | 26 | #include "pointerconstraints_interface_p.h" | ||
27 | #include "region_interface.h" | 27 | #include "region_interface.h" | ||
28 | #include "subcompositor_interface.h" | 28 | #include "subcompositor_interface.h" | ||
29 | #include "subsurface_interface_p.h" | 29 | #include "subsurface_interface_p.h" | ||
30 | #include "surfacerole_p.h" | ||||
30 | // Qt | 31 | // Qt | ||
31 | #include <QListIterator> | 32 | #include <QListIterator> | ||
32 | // Wayland | 33 | // Wayland | ||
33 | #include <wayland-server.h> | 34 | #include <wayland-server.h> | ||
34 | // std | 35 | // std | ||
35 | #include <algorithm> | 36 | #include <algorithm> | ||
36 | 37 | | |||
37 | namespace KWayland | 38 | namespace KWayland | ||
▲ Show 20 Lines • Show All 486 Lines • ▼ Show 20 Line(s) | 518 | } else { | |||
524 | for (auto it = current.children.constBegin(); it != current.children.constEnd(); ++it) { | 525 | for (auto it = current.children.constBegin(); it != current.children.constEnd(); ++it) { | ||
525 | const auto &subSurface = *it; | 526 | const auto &subSurface = *it; | ||
526 | if (subSurface.isNull()) { | 527 | if (subSurface.isNull()) { | ||
527 | continue; | 528 | continue; | ||
528 | } | 529 | } | ||
529 | subSurface->d_func()->commit(); | 530 | subSurface->d_func()->commit(); | ||
530 | } | 531 | } | ||
531 | } | 532 | } | ||
533 | if (role) { | ||||
534 | role->commit(); | ||||
535 | } | ||||
532 | emit q->committed(); | 536 | emit q->committed(); | ||
533 | } | 537 | } | ||
534 | 538 | | |||
535 | void SurfaceInterface::Private::commitSubSurface() | 539 | void SurfaceInterface::Private::commitSubSurface() | ||
536 | { | 540 | { | ||
537 | if (subSurface.isNull() || !subSurface->isSynchronized()) { | 541 | if (subSurface.isNull() || !subSurface->isSynchronized()) { | ||
538 | return; | 542 | return; | ||
539 | } | 543 | } | ||
▲ Show 20 Lines • Show All 427 Lines • Show Last 20 Lines |