Bug 457316

Summary: Lockscreen: When turning on second screen, part of the opened windows become visible for a split second on the primary screen
Product: [Plasma] kwin Reporter: postix <postix>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate, postix, xaver.hugl
Priority: NOR Keywords: wayland
Version: 5.25.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=316734
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: kWin Debug Information
Screenshot
Screenshot 2
Screenshots: Frame by frame
Screenrecording
journalctl log

Description postix 2022-07-30 21:17:09 UTC
Created attachment 151006 [details]
kWin Debug Information

SUMMARY

Three screens from left to right:
A: 2k@100% (HDMI, disabled), 
B: 4k@200% primary (DP), 
C: 2k@100% (HDMI)

STEPS TO REPRODUCE
1.  Lock screen
2.  Put C into Standby (TV)
3.  Turn on C (by pressing on your remote)

OBSERVED RESULT
There's a visual glitch visible on the B and parts of the opened windows are displayed for a split second

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220728
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.11-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 580 Series
Comment 1 postix 2022-07-30 21:19:49 UTC
Created attachment 151007 [details]
Screenshot
Comment 2 postix 2022-07-30 21:20:49 UTC
It looks like the screenlocker's surface becomes resized for a split second, not covering the whole screen anymore and the content beneath it is revealed.
Comment 3 postix 2022-07-30 21:23:33 UTC
Created attachment 151008 [details]
Screenshot 2

Here's another sample, where no content is revealed though.
Comment 4 postix 2022-07-30 21:29:43 UTC
Created attachment 151009 [details]
Screenshots: Frame by frame
Comment 5 postix 2022-07-30 21:38:35 UTC
Created attachment 151010 [details]
Screenrecording

A very last example: Screen recording related to attachment "Frame by Frame".
Comment 6 postix 2022-07-30 21:47:53 UTC
Side node: When I finally unlocked the screen, all windows were moved to B and C showed the desktop of disabled screen A (wallpaper + widget), which was scaled down in the upper left corner, covering ~2/3 of B's screen.
This issue went away after several seconds, before I could take a screenshot.
Comment 7 postix 2022-07-30 21:48:38 UTC
> ~2/3 of B's screen.
I meant "~2/3 of C's screen."
Comment 8 postix 2022-07-31 09:42:00 UTC
Created attachment 151030 [details]
journalctl log

Please find the journalctl log attached. Screen "C" was turned on/off several times for reproduction of the issue.