28a2cc62fa
Re-did the painting logic, and document it. It is unclear to me what is the previous painting logic. But the current one is basically this: 1. Go through all windows top to bottom, and put visible windows (not unmapped, opacity > 0, etc) into a linked list, from bottom to top 2. Accumulate a region of ignore on each window, which is basically the region of screen that is obscured by all the windows above current one. 3. Paint all the visible windows from bottom to top. Subtract the region of ignore from the painting region. If we need to paint shadow, we subtract the body of the window from the shadow painting region too, because we don't want shadow behind the window. 4. region of ignore is invalidated when window stack change, an window on top moved or changed shape, when window changed between opaque and transparent, etc. Notes: It is unclear whether all the different shapes of a window (extents, noframe, border, bounding shape, etc) are calculated correctly or not. It is unclear if window shape related events are handled correctly or not. Need more testing. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com> |
||
---|---|---|
.github | ||
bin | ||
dbus-examples | ||
man | ||
media | ||
src | ||
tests | ||
.editorconfig | ||
.gitignore | ||
CPackConfig.cmake | ||
Doxyfile | ||
LICENSE | ||
Makefile | ||
README.md | ||
README_orig.md | ||
_CMakeLists.txt | ||
compton-default-fshader-win.glsl | ||
compton-fake-transparency-fshader-win.glsl | ||
compton.desktop | ||
compton.sample.conf | ||
desc.txt | ||
functions.sh | ||
make-release.sh |
README.md
Compton
This is a development branch, bug to be expected
This is forked from the original Compton because that seems to have become unmaintained. I'll merge pull requests as they appear upstream, as well as trying to fix bugs reported to upstream, or found by myself.
New features are not likely to be added, since I expect compton to become irrelevant in near future.
The original README can be found here
You are welcomed to submit pull requests.