Peeing out of spite.....and fixing it?

Heidi is 10years old and has never done this before last week. I just started seeing someone knew last week and heidi and him instantly bonded. Instantly she has taken to peeing on top of the bed while we are getting it on. Right next to us. So this week I have been locking her out(baby gate no closed doors) and she's. Een peeing on the floor instead. And whining. I've had her since she was 7.5weeks old. It's only started with him maybe cause they instantly took a liking to each other. How do I get her to stop.

She is not crate trained as I've tried and my neighbors thought she was drying and almost called the police from the noise. Yes she's always been spoiled. Yes she sleep in my bed.

Heidi is 10years old and has never done this before last week. I just started seeing someone knew last week and heidi and him instantly bonded. Instantly she has taken to peeing on top of the bed while we are getting it on. Right next to us. So this week I have been locking her out(baby gate no closed doors) and she's. Een peeing on the floor instead. And whining. I've had her since she was 7.5weeks old. It's only started with him maybe cause they instantly took a liking to each other. How do I get her to stop.

She is not crate trained as I've tried and my neighbors thought she was drying and almost called the police from the noise. Yes she's always been spoiled. Yes she sleep in my bed.