在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。