Using this in /usr/bin/compiz fixed my black window problems.
COMPIZ_OPTIONS="--indirect-rendering --strict-binding"
I also have these options in my xorg.conf in the Screen section:
Option "DamageEvents" "True" Option "UseEvents" "True" Option "TripleBuffer" "True" Option "BackingStore" "True"
And at the end of my xorg.conf: Section "Extensions" Option "DAMAGE" "Enable" Option "Composite" "Enable" Option "RENDER" "Enable" EndSection
Using this in /usr/bin/compiz fixed my black window problems.
COMPIZ_ OPTIONS= "--indirect- rendering --strict-binding"
I also have these options in my xorg.conf in the Screen section:
Option "DamageEvents" "True"
Option "UseEvents" "True"
Option "TripleBuffer" "True"
Option "BackingStore" "True"
And at the end of my xorg.conf:
Section "Extensions"
Option "DAMAGE" "Enable"
Option "Composite" "Enable"
Option "RENDER" "Enable"
EndSection