How to fix compton shadow problem in linux xubuntu

Afiv Dicky Efendy
3 min readFeb 10, 2021

Hi everyone, back again with me and today i’ll give you some new tips and tutorial about linux. This problem was happened when you install compton as default window manager.

Desktop compositors have become a modern necessity, whether it be due to screen tearing or simply a yearning for desktop eye candy. While compositors often come at a cost — speed and resources — a tiny compositor is here to save the day: Compton. Able to run on even the lamest of machines, Compton can smooth out graphics on low-end hardware or make a new machine’s desktop lightning-fast.

For those not in the know, Compton is a super-lightweight standalone compositor designed to be used in conjunction with Linux desktops. Perfect for older hardware, it is often used by lightweight distros that need a compositor that won’t sacrifice speed and responsiveness. We’ve included instructions for three desktops here: KDE, MATE, and Xfce. Note that the same principles can be applied to many other desktops.

In the previous tutorial, i recommended you to install compton as default window manager than xfwm4(xfce window manager). Because when you using xfwm4 your linux screen can have tearing problem.

check this out:

But the another problem happened after we doing tutorial in above. your linux free from screen tearing but have shadow in the window application.

So how to fix this shadow problem?

After doing some search on the internet, fortunately i have solution to fix this problem. The solution is we can disable the shadow in the compton configuration.

Step by Step:

  • open your terminal and type command below.
cd /etc/xdg/xdg-xubuntu

in there you will see compton.conf file.

  • open that file configuration with text editor.
sudo mousepad compton.conf

in this tutorial i’m using mousepad text editor.

  • in the file configuration, find shadow and give the value false.
  • And the last one is save the file configuration and reboot your computer.

Okay, That’s all tips what i can share today with you. hopefully can help.

Thank you for reading and don’t forget to clap this article 👌.

--

--

Afiv Dicky Efendy

Linux enthusiast who wants to share his knowledge through writing on the medium