Change display layouting logic
Too often we get bug reports or complaints about things that are caused by KScreen randomly overlapping displays by a few pixels. In order to fix that I'd like to make KScreen
-
enforce having no partial overlaps by snapping displays to their edges when there's only a slight overlap. Is there even a valid use case of having a display half overlap with another? -
do cloning differently. Instead of having the user change the mode to be the same and then drag them over each other, if a monitor is explicitly dragged into another one, make them be cloned automatically. On the Wayland side we can make that "just work" with KWin handling everything, on X it'll have to check whether or not a compatible mode is available -
When displays are cloned, show a list of cloned displays in the unified section instead of having the two displays overlap in an unintuitive way. I don't know yet what text to show in that list though - the monitor names themselves are sometimes too big for the normal monitor representations already.
The cloning on Wayland stuff needs some more involved changes on the KWin side that will not be done by 5.24 but checking for overlaps should be pretty much trivial.