Ubuntu – How to avoid Compton drawing shadows on the Gnome-Do window

compositingcomptongnome-do

Compton can draw shadows under windows, which is nice, but unfortunately it draws shadows under the Gnome-Do window, which ends up like this:

Screenshot

Is it possible to keep that from happening?

Best Answer

  • Add it to shadow-exclude array:

    # Shadow
    ...
    shadow-exclude = [ "class_g = 'Do'" ];
    

    in

    /home/<user>/.config/compton.conf
    
  • Or specify it with compton launch command. Example:

    compton -c --shadow-exclude 'class_g = "Do"'
    

Reference: man compton

Related Question