Hi Hessel. 
When you add a courtyard into a building, Create a multipolygon of it
Select the outlines as well as the courtyard(s) and press Ctr+B.
You can find it also under the 'more tools' tab
Best regards