Fading leaves artifacts when closing window with transparency
Platform: Fedora 28 Workstation Edition, 64-bit, on an XPS 13.
GPU, drivers, and screen setup: Intel UHD Graphics 620, i915 driver, one monitor (laptop screen) configured at 1600x900 with xrandr.
Compton version: 0.1.beta3.fc28 from fedora repos
Compton configuration:
https://paste.fedoraproject.org/paste/kMkzeUH4oJJS-vYKWTV6cw
Compton command: compton --fading --fade-delta 5
Steps of reproduction
Run compton with the above command, then run something with transparency (I have been testing my program https://github.com/expectocode/hacksaw). When hacksaw exits, you see smaller rectangles drawn inside the rectangle.
Expected behavior
Clean shutdown with just the drawn rectangles disappearing, no smaller rectangles.
Current Behavior & Other details
It seems to be caused by fading, since running compton without fading makes the artifacts disappear. However, even without fading, the BadWindow messages still appear, just the artifacts are not shown.
Recording of the problem (note that at the start of the recording, compton is running with fading):

Sorry about the gif quality, can't upload MP4s.