Am I in denial or…?

I have been in a relationship with this girl for 3 years opposed to her X of 5 years that still lives with her I have lived with them b4 and even got to know the guy against my better judgment and I have had to mask my emotions and downplay my affection for her whenever I’m around him their mutual friends and some family members. I admit I brought myself into this weird triangle knowing they were trying to work things out but for the past year I’m have been torn that I don’t even get to sleep in the same bed with her bc he there and I use physical contact to help sleep and that alone has made distant from her. It upsets her but I feel like I’m the one that’s really suffering. Have I been in denial that I’m being treated unfairly or should I just let it be and wait to see how long it takes

Am I in denial or…?
Post Opinion