main: Avoid a warning
transient-for relationships only exist between windows, so check that both candidates are such.
Fixes: #2894 (closed)
transient-for relationships only exist between windows, so check that both candidates are such.
Fixes: #2894 (closed)