Unless you select specific roof(s) that you want involved in the trimming, then all roofs that touch your wall are considered. With a shed dormer side-wall, you'll want to select the lower roof and trim the bottom, then select the upper roof and trim the top.
Karl
One of the forum moderators
AC 27 USA and earlier • macOS Ventura 13.6.6, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB