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

Authored by graesslin on Mar 23 2016, 3:59 PM.

Description

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

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.

Reviewers: Plasma

Subscribers: plasma-devel

Projects: Plasma

Differential Revision: https://phabricator.kde.org/D1207

Details

Committed
graesslinMar 23 2016, 4:01 PM
Differential Revision
D1207: [server] Add method to get to the main surface from a sub surface
Parents
R127:7ee80632e2c8: [server] Improve variable naming
Branches
Unknown
Tags
Unknown