Multi monitor layout quirky window placement

I wonder if people have noticed similar issues that I’m experiencing. I have somewhat abnormal monitor layout where 3 as side by side and fourth is at top. It works fine mostly. But at times when I shutdown monitors some of the windows love to seek into new locations when monitors are turned back on. This only effects some of the windows that are always going wild (likely something to do with XWayland). I’m still trying to figure out the pattern for this. It seems to make no difference if its repo native or flatpak.

Here is the layout for reference.
image
It would be somewhat fine if they just seek refuge at some monitor. But they tend to seek into that red area. Clearly it is not visible. And sometimes its bit tricky to fish out the window from that area because I can’t move my mouse there. According to task bar, the window is “registered” into top most monitor or bottom right monitor. It feels like the app goes to the border of that top or right most monitor where most of the window is at red area.

My primary monitor (at center) and top most monitors have EDID-emulation, thus they are never “unplugged”. But both side monitors might experience some sort of unplugged event (even if they are not physically).

I’m using Plasma 6 with Wayland, but this is not limited to Plasma 6.

Do any native Wayland windows exhibit this behavior? Or is it only seen with XWayland windows?

I’ve been trying to observe a pattern but there doesn’t seem to be any clear thing. It’s not all the windows and not all the time. It’s kind of hard to know if app is running XWayland or native Wayland. But I did notice new quirk and it was the sound volume applet/widget/whatever moving into primary screen’s upper left corner. The one that shows you current volume as you change volume. Once it found new home there, it liked that position until reboot. Not sure if related or not.

Very vague and not sure how to diagnose this further as there is no clear error or anything like that. I started to wonder if I should make a script that logs geometry settings as it could be related to calculating those in race condition scenario. As in the monitors come “online” and something moves windows based on old geometry. Just a complete guess in dark tho. Not sure what does the moving, KScreen maybe?

Still on Plasma 6.0.5 (Framework 6.2, Qt 6.7.1). Kind of waiting to move into 6.1 if that helps.

image
Here is also maybe better picture. The numbering is the order the windows like to move. The EDID means it should get signal all the time and VOL means volatile, that screen might go “offline” (cable connected). Same resolution on all.

Most trouble I have is with monitor number 4. Windows tend to seek refuge in monitor 1 but getting back they only move sideways (I think) causing it to end up in red area. As I sometimes see that window has moved to monitor 1 and doesn’t even attempt to get back to 4.