首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用康普顿的阴影故障;在Nautilus窗户周围显示的“玻璃”矩形

使用康普顿的阴影故障;在Nautilus窗户周围显示的“玻璃”矩形
EN

Ask Ubuntu用户
提问于 2016-12-27 13:37:24
回答 1查看 2.6K关注 0票数 0

我使用康普顿在我的xubuntu 16.10,因为这样我的系统是免费的。当我使用Thunar时,窗口的阴影是可以的,但是如果我使用Nautilus (我更喜欢),那么窗口的阴影就会在图像中出现故障。

即使我完全禁用compton.conf中的阴影,也会发生这种情况。

这是我的compton.conf:

代码语言:javascript
复制
# Compton Configuration, courtesy of Xubuntu Developers
# Please note that Compton is not supported by Xubuntu and may not work
# correctly for you. This file is provided as a set of sane defaults and is in
# no way endorsed by the Xubuntu team.
#
# About Compton: https://github.com/chjj/compton
# Heavily based on: http://bit.ly/1l5OrzL
# Sample settings: https://github.com/chjj/compton/blob/master/compton.sample.conf

# --- Backend (OpenGL used by default)
# Related Links
# https://github.com/chjj/compton/wiki/perf-guide
# https://github.com/chjj/compton/wiki/vsync-guide

backend = "glx";
paint-on-overlay = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
unredir-if-possible = true;
vsync = "opengl-swc"; 


# --- Shadows (Disable with shadow = false;)
# The shadow exclude options are helpful if you have shadows enabled.
# Due to the way compton draws its shadows, certain applications (Such as
# shaped windows, custom popups, non-standard toolkits) will have visual glitches.

shadow = true;              # Enabled client-side shadows on windows.
no-dock-shadow = true;      # Avoid drawing shadows on dock/panel windows.
no-dnd-shadow = true;       # Don't draw shadows on DND windows.
clear-shadow = true;        # Zero the part of the shadow's mask behind the window (experimental).
shadow-radius = 10;         # The blur radius for shadows. (default 10)
shadow-offset-x = -15;      # The left offset for shadows. (default -15)
shadow-offset-y = -12;      # The top offset for shadows. (default -12)
shadow-opacity = 0.4;
shadow-exclude = [
 "! name~=''",              # "Unknown" windows, including xfwm4 alt-tab
 "n:e:Notification",
 "n:e:Plank",
 "n:e:Docky",
 "g:e:Synapse",
 "g:e:Kupfer",
 "g:e:Conky",
 "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'",
 "class_g ?= 'Xfwm4'",      # For the "new" xfwm4 alt-tab
 "_GTK_FRAME_EXTENTS@:c",   # GTK+ 3 CSD windows https://github.com/chjj/compton/issues/189
 "class_g ?= 'Nautilus'",
 "WM_CLASS@:s *?= 'Nautilus'"
];


# --- Fading (Disable with fading = false;)

fading = true;              # Fade windows during opacity changes.
fade-delta = 5;             # The time between steps in a fade in milliseconds. (default 5).
fade-in-step = 0.03;        # Opacity change between steps while fading in. (default 0.03).
fade-out-step = 0.03;       # Opacity change between steps while fading out. (default 0.03).


# --- Additional Settings
detect-client-opacity = true;


# --- Window type settings
wintypes:
{
  tooltip = { fade = true; shadow = false; opacity = 0.9; focus = true; };
};

请注意,我使用Adapta-nokto作为gtk主题。有什么想法吗?谢谢

更新:所以执行compton --shadow-exclude '_NET_WM_OPAQUE_REGION@:c'可以解决问题,但是我得到了Another composite manager is already running

另外,将'_NET_WM_OPAQUE_REGION@:c'添加到compton.conf的阴影排除部分在reastart之后不起作用

EN

回答 1

Ask Ubuntu用户

发布于 2016-12-30 12:27:58

如果禁用,这将移除某些窗口之外的透明框,清除阴影= true;# Zero是窗口后面阴影掩码的一部分(实验性的)。但它会给它们添上阴影。

我尝试了您说的命令,加上清除阴影=false,它修复了这个问题,但是现在有些窗口根本没有阴影。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/865044

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档