Bug 457740

Summary: When screens are arranged to be partially overlapping in KScreen KCM, main screen drawn over part of external monitor
Product: [Plasma] kwin Reporter: piotr.juzwiak
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: nate
Priority: NOR    
Version First Reported In: 5.25.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.26
Sentry Crash Report:
Attachments: Picture of laptop and monitors in tthe background showing overlapping area.
Another picture of the issue
"Drag and drop" setting used
Config before change
Config after change

Description piotr.juzwiak 2022-08-10 22:21:05 UTC
Created attachment 151236 [details]
Picture of laptop and monitors in tthe background showing overlapping area.

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  In a multimonitor scenario drag the "main" screen over the external monitors so they overlap
2.  The main screen's area is displayed over the external screen's area
3. 

OBSERVED RESULT

The laptop's area is displayed/rendered on the external monitor(s)

EXPECTED RESULT
I would imagine it shouldn't display/render laptop's "area" on the external monitors

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version:  5.25.4
KDE Frameworks Version: 5.96
Qt Version: 5.15.5

ADDITIONAL INFORMATION
Using amdgpu, connecting to monitors via  USB-C to DP cable.
Comment 1 piotr.juzwiak 2022-08-10 22:21:31 UTC
Created attachment 151237 [details]
Another picture of the issue
Comment 2 piotr.juzwiak 2022-08-10 22:21:59 UTC
Created attachment 151238 [details]
"Drag and drop" setting used
Comment 3 Nate Graham 2022-08-11 18:06:27 UTC
Cannot reproduce on current git master with Wayland. Are you using X11 or Wayland?
Comment 4 piotr.juzwiak 2022-08-11 19:05:53 UTC
HI Graham, I can replicate it in both wayland and X11 enironment. I'm trying to get some better debugging info now
Comment 5 piotr.juzwiak 2022-08-11 20:03:58 UTC
Created attachment 151266 [details]
Config before change
Comment 6 piotr.juzwiak 2022-08-11 20:04:24 UTC
Created attachment 151267 [details]
Config after change
Comment 7 piotr.juzwiak 2022-08-11 20:05:50 UTC
I've added two versions from kscreen folder where I noticed a difference.  I've saved both config files before and after change to compare. Please let me know what kind of other information you'd like me to get.
Comment 8 piotr.juzwiak 2022-08-11 21:01:03 UTC
HI Graham,

I've tested it with the latest Unstable KDE Neon and I couldn't reproduce the same issue (besides having another issue with gpu but unrelated).
Comment 9 Nate Graham 2022-08-11 21:03:24 UTC
Awesome, thanks so much for testing! It would seem that it's already fixed in Plasma 5.26, then.