We need to map surfaces before first render cycle to get size of
original buffer. Also do not invalidate surface if output of space stays
same.
Free callbacks immediately.
Parent resource is wlc_surface.
Unfocus before releasing resources.
Point surface view to NULL in case view is removed before.
Add window type bits.
Remove debug print.
Close popup surfaces.
Implement parents.