multiple monitors – How can I let Xubuntu / Xfce ignore me turning my screen on/off?

I’m using Xubuntu Jammy 22.04.3 LTS with Xfce 4.

I have a multi-monitor setup and I don’t like the default behaviour when I turn one of my screens off. When I turn a screen off (using the button on the screen itself), the system starts moving windows and panels around and limits my mouse to the screens that are still on. I just want the windows/panels to stay where they are and be able to interact with them using the mouse, as if the screen is still on.

How can I let Xubuntu treat monitors as if they are turned on even when they’re not?

Video driver info:

$ lspci -k | grep -EA3 VGA
2b:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070 Ti] (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] GP104 [GeForce GTX 1070 Ti]
        Kernel driver in use: nvidia
        Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

Read more here: Source link