compositor: implement handling of manual surface margins