windows switch screens when hdmi connected

Recently I’ve found an annoying new behavior. I’m running F44 fedora on a lenovo x1 carbon laptop. When hdmi is connected, all the windows move to the external screen. I see the laptop screen is still primary. This can be embarrassing in a public forum.

This is kde plasma 6.7.3