我在使用 Compton 复合管理器的阴影显示时遇到了问题。在某些情况下,阴影的边框超出了应用它的窗口,留下了可见的边框和周围的透明框。
每当窗口或框架覆盖不是完美的矩形时,似乎都会发生这种情况,例如 Firefox 中的自动滚动指针或顶部带有小箭头的附加菜单(请参阅下面的屏幕截图以供参考)。在我的 Web 浏览器之外,还有其他一些类似的情况,但目前我记不起任何具体的事情。
由于我的视频卡存在撕裂问题,我需要使用 Compton 作为我的 XFCE 桌面环境的合成器,到目前为止我对它非常满意,除了这些阴影的视觉问题。
我认为我的配置文件可能没有设置好,我也尝试向detect-rounded-corners = true;
其中添加选项,但没有任何区别。
这个问题有解决办法吗?有没有好的康普顿配置可以作为我一般设置的基础?
我的康普顿配置文件目前如下所示:
#--------------------------------
#-------Backend Settings:--------
#--------------------------------
backend = "glx"; # Use GLX backend for rendering
vsync = "opengl"; # Use OpenGL to implement vsync
glx-swap-method = 3; # Use a triple-buffer
paint-on-overlay = true; # Improves performance (usually) and reduces flickering
glx-no-stencil = true; # Improves performance
glx-no-rebind-pixmap = true; # Improves performance with rapid window changes, might not work with some drivers
#--------------------------------
#--------Shadow Settings:--------
#--------------------------------
shadow = true; # Enable drawing shadows on windows
shadow-radius = 8; # The blur radius for shadows
shadow-offset-x = -8; # The horizontal offset for shadows
shadow-offset-y = -8; # The vertical offset for shadows
clear-shadow = true; # Zero the part of the shadow's mask behind the window, may break some applications
no-dock-shadow = true; # Do not draw shadows on docks/panels
no-dnd-shadow = true; # Do not draw shadows on DND windows
shadow-exclude = [ # Do not draw shadows on these specific applications:
#"! name~=''",
"n:e:Notification",
"n:e:Plank",
"n:e:Docky",
"g:e:Synapse",
"g:e:Kupfer",
"g:e:Conky",
"n:w:*dockbarx*",
#"n:w:*Firefox*",
#"n:w:*Chrome*",
#"n:w:*Chromium*",
"class_g ?= 'Notify-osd'",
"class_g ?= 'Cairo-dock'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'"
];
#--------------------------------
#--------Fading Settings:--------
#--------------------------------
fading = true; # Enable fading windows during opacity changes
fade-delta = 4; # The time between steps in a fade in milliseconds
fade-in-step = 0.03; # The opacity change between steps while fading in
fade-out-step = 0.03; # The opacity change between steps while fading out
detect-client-opacity = true; # Prevent opacity from being ignored for some applications
#--------------------------------
#--------Window Settings:--------
#--------------------------------
wintypes: # Change behavior for these specific types of windows:
{
tooltip = { fade = true; shadow = false; };
};
detect-rounded-corners = true;
但我之前有过另一种配置,也存在这个问题。
我的硬件如下:
MB Gigabyte GA-H97 HD3
CPU Intel Xeon E3-1231 (No AGP)
RAM 32GB DDR3
GPU Nvidia Quadro 5000
2560x1080 Display, 60 Hz, connected via DisplayPort