we also might want to either clear the selection when switching layers or at least not draw the selection rectangle on selected, but inactive nodes with icons. I'll open a separate bug for this in a minute.