Bug 491856

Summary: Toggling compositing doesn't work on wayland.
Product: [Plasma] kwin Reporter: Catty Steve <cattysteve89265>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: viniciush.dev
Priority: NOR    
Version First Reported In: 6.1.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Catty Steve 2024-08-18 11:40:59 UTC
SUMMARY
Toggling compositing, using either kwin rules or hotkeys, is broken on wayland. X11 is fine.

STEPS TO REPRODUCE
1. Set hotkey "suspend compositing" to Alt+Shift+F12
2. Press Alt+Shift+F12
or...
1. Set kwin rules to block compositing on any windows
2. Open any application

OBSERVED RESULT
Kwin still composing effects, with no VRAM usage drop.

EXPECTED RESULT
Kwin stop composing effects, seeing panel to become not transparent(or blurred), with significant VRAM drop.
Behavior is correct in x11 session though.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.5-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 6800U with Radeon Graphics
Memory: 13.3 GiB of RAM
Graphics Processor: AMD Radeon Graphics

ADDITIONAL INFORMATION
Comment 1 Vinícius 2024-08-18 14:03:51 UTC
The function only work on x11, because in wayland kwin is the compositor, if you disable it you can't see anything