[server] Add method to get to the main surface from a sub surface
ClosedPublic

Authored by graesslin on Mar 23 2016, 4:01 PM.

Details

Summary

Recursively go up to the main surface, that is the top level surface
which doesn't have a parent.

This is useful to know to which surface tree a sub-surface belongs to.

Diff Detail

Repository
R127 KWayland
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 2924.Mar 23 2016, 4:01 PM
graesslin retitled this revision from to [server] Add method to get to the main surface from a sub surface.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptMar 23 2016, 4:01 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sebas accepted this revision.Mar 24 2016, 12:31 AM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Mar 24 2016, 12:31 AM
This revision was automatically updated to reflect the committed changes.