compositor: Only create paint nodes for mapped surfaces/views
If a surface or a view is not mapped, then we should not be trying to paint it. Check if this is the case and ensure that we only insert paint nodes for mapped surfaces & views.
This also makes sure that libweston-desktop marks popup surfaces as mapped.
Fixes: #621 (closed)
Edited by Daniel Stone