Bug 459049

Summary: Relayout is slow on dynamic enabling a display
Product: [Plasma] kwin Reporter: tnizametdinov
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.24.6   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tnizametdinov 2022-09-13 09:40:57 UTC
SUMMARY
***
Relayouting of windows is slow and sometimes hangs while enabling display (either by plugging in an external monitor or manually via Display Manager).
***


STEPS TO REPRODUCE
1. Open multiple windows of some apps.
1. Plug in an external monitor. Wait until relayout is finished.
2. Goto Display Configuration.
3. Disable display. Wait until relayout is finished.
4. Enable display.



OBSERVED RESULT
Relayout takes up to a minute(s).

EXPECTED RESULT
Relayout is done in second(s).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
5.24.6
KDE Frameworks Version: 
5.92.0
Qt Version: 
5.15.3
ADDITIONAL INFORMATION
OS: Pop!_OS 22.04 LTS
Kernel 5.19.0, X11
Graphics: Mesa Intel UHD Graphics 630
Comment 1 Vlad Zahorodnii 2022-09-14 09:43:54 UTC
Can you provide us more details? What does happen during that one minute?
Comment 2 tnizametdinov 2022-11-11 08:04:02 UTC
The background image appears on the second monitor,
on the main (laptop) monitor, relayouting starts (as the second monitor is a primary one),
during the relayout the taskbar moves to the middle,
system freezes,
after one minute unfreezes.

Also noticed even worst behavior - monitors sometimes go to sleep mode after one minute. Didn't recognize any patterns yet.

PS:
Sorry for the delayed answer.