Oh I see, sorry for duplicating the thread.
This was on a Macbook Pro M1 14-inch, seems to happen both with and without second monitor connected.
Not sure if related, but I had a problem on a Windows-machine last week were /main somehow mirrored the primary monitor, but that thas was solved by connecting it to a second monitor.