Why does perspective always have xray on?
This occurs due to your Start Clipping being to small, to fix that open up your NPanel, then go to the View section and change the Start clipping value to 0.100



Or either it could be the Limit Selection to visible button next to the Vertex/Edge/Face Select properties, as mentioned by Mike Metcalf