Bug 486556 - No longer possible to disable composition through the API
Summary: No longer possible to disable composition through the API
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 6.0.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-05-04 09:45 UTC by Alberto Salvia Novella
Modified: 2024-05-05 02:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Salvia Novella 2024-05-04 09:45:56 UTC
Kwin_X11 used to have three methods for disable composition:

1. By creating a window that had the hint: _NET_WM_BYPASS_COMPOSITOR
2. By running the command: qdbus org.kde.KWin /Compositor suspend
3. From QML, by calling: client.blocksCompositing = true

The two last methods have been removed. This renders one of the most popular Kwin scripts broken, Autocomposer (https://www.opendesktop.org/p/1502826).

This script is important for people because it allows running games fluently, more in low end hardware. Without it games perform slower, specially if desktop effects like "Blur" or "Background Contrast" are in use.

The only way to fix Autocomposer right now is by creating an invisible window that holds the first hint, which is ugly.

Alternatively the option "allow applications to block compositing" could affect full-screen applications that don't explicitly set the hint, as Autocomposer does. This is a more expected behavior.