We________our breakfast when an old man came to the door.
just...when 一……就……; 是固定搭配, 其次此处的吃饭在进门之前就发生了。所以用过去完成时, 故选 D。