My frilled dragon will do this as well. He has a fake, leafy tree he sleeps in and constantly has his body proped up against the glass, despite several sturdy spots.