Bug 461931

Summary: After resume from hibernate or sleep, Xorg process uses high cpu; `kwin --replace` fixes it
Product: [Plasma] kwin Reporter: zyf0330 <zyf034100>
Component: platform-x11-standaloneAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate
Priority: NOR    
Version: 5.25.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description zyf0330 2022-11-17 02:55:54 UTC
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. hibernate
2. wake up after one night

OBSERVED RESULT
Xorg use about 30% cpu, and UI lags a little.

EXPECTED RESULT
Normally, Xorg should use 3-7% cpu.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 22.10
(available in About System)
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
After upgrade from Ubuntu 22.04 to 22.10, this problem occurs.
And, after call `kwin --replace`, Xorg cpu usage is back to normal.