[server] Add a convenient method to check whether a Surface is mapped
ClosedPublic

Authored by graesslin on Mar 29 2016, 10:08 AM.

Details

Summary

In a SubSurface tree a Surface is only considered mapped if the Surface
has a buffer applied and the parent Surface is mapped.

The added method implements this check. It's useful for the compositor
to easily check this condition as it allows to easily figure out whether
a SubSurface needs to be rendered and it's also useful for implementing
the input handling as a not mapped sub-surface should not get any input
events.

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 2996.Mar 29 2016, 10:08 AM
graesslin retitled this revision from to [server] Add a convenient method to check whether a Surface is mapped.
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 29 2016, 10:08 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart accepted this revision.Mar 29 2016, 11:25 AM
mart added a reviewer: mart.
This revision is now accepted and ready to land.Mar 29 2016, 11:25 AM
This revision was automatically updated to reflect the committed changes.