在CentOS上,Compton與Wayland的沖突通常是由于Wayland的默認顯示堆棧替代了傳統的X.Org Server,而Compton是一個基于X.Org的窗口合成器。為了解決這一沖突,可以采取以下步驟:
/etc/gdm/custom.conf
文件,將 WaylandEnable=false
添加到 [Seat:*]
部分。這將禁用Wayland并強制使用X.Org。確保系統上安裝了X.Org服務器和相關組件??梢酝ㄟ^以下命令安裝:
sudo yum install xorg-x11-server xorg-x11-server-Xorg xorg-x11-libX11 xorg-x11-libXext xorg-x11-libXrender xorg-x11-libXi xorg-x11-libXrandr xorg-x11-libXcursor xorg-x11-libXinerama xorg-x11-libXcomposite xorg-x11-libXdamage xorg-x11-libXext6 xorg-x11-libXrandr2 xorg-x11-libXrender1 xorg-x11-libXi6 xorg-x11-libXrandr3 xorg-x11-libXrender-dev xorg-x11-libXi-dev
~/.config/compton.conf
)中沒有強制使用Wayland的設置。如果有,將其更改為使用X.Org。