It turns out that xsetroot
uses XSetWindowBackground()
for setting the background and compton is incompatible with this.
Try to use hsetroot
instead of xsetroot
(it has the same syntax with -solid
etc).
If you want to learn more see the following compton issue report: