I would recommend to disable compositor effects in XFCE settings (xfwm4-tweaks-settings) instead, if you still want to utilise hardware acceleration