It's best if you put a visual barrier up between them (such as a poster, tank background, piece of cardboard) just to be safe. I know my male beardie freaked out when he was living in sight of Bo (our Meller's chameleon), but calmed down and become his happy self again once he was out of Bo's room.