https://bugs.kde.org/show_bug.cgi?id=435223

--- Comment #9 from Alberto Salvia Novella <es204904...@gmail.com> ---
By the way I have figured out an even better algorithm to do this. Now:

- Entering or leaving full-screen instantly toggles composition. You can't even
see the transition.
- Composition isn't re-enabled if the full-screen window loses focus, till that
window is closed.
- Applications started as windowed don't automatically block composition when
maximized, for example web-browsers.
- No perceivable use of CPU or IO on the system monitor.

The trick was simple: only re-test for full-screen if the last known
full-screen window is no longer full-screen.

Everything is done in memory for maximum performance, and only iterated on
window focus change.

Solving problems that no bunch of people were able to solve in the last 20
years, with a few lines, is the license of being awe.

https://gitlab.com/es20490446e/kwin-autocomposer/-/blob/master/root/usr/share/kwin-autocomposer/kwin-autocomposer

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to