康普頓:陰影顯示不正確(最喜歡的設定)?

康普頓:陰影顯示不正確(最喜歡的設定)?

我在康普頓複合管理器的陰影顯示方面遇到問題。在某些情況下,陰影的框架超出了它所應用的窗口,從而在其周圍留下可見的邊框和透明框。

每當視窗或框架覆蓋不是完美的矩形時,似乎都會發生這種情況,例如 Firefox 中的自動滾動指標或頂部帶有小箭頭的插件選單(請參閱下面的螢幕截圖以供參考)。在我的網頁瀏覽器之外還有其他一些類似的情況,但我目前記不起任何具體的事情。

由於我的顯示卡有撕裂問題,我需要使用 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

答案1

如果您正在談論 Privacy Badger 影子,那麼可以透過在清單中添加以下行來解決此問題shadow-exclude

"class_g = 'Firefox' && argb"

它將刪除此類視窗中的陰影,但將其保留在功能表(如果未停用)和主視窗上。來源是這裡&這裡。關於這個問題有一些解釋。

相關內容