我的一台旧台式机上安装了 Ubuntu 14.04 和 Xubuntu 16.04。
虽然两者都运行良好,但我在 Xubuntu 中拖动窗口时遇到了屏幕撕裂的情况。不过,我在 Ubuntu 上没有遇到这种情况。
它使用主板内置的 AMD 图形芯片。
笔记:这种确切的情况也适用于配备 GTX650 显卡的主台式机......
此时,我认为这与 Untiy 作为 3D DE 而 XFCE 作为 2D DE 有关...
答案1
注:这些指示已从邓肯·洛克 (Duncan Lock) 博客的原始来源。
打开终端并运行以下命令:
sudo apt-get update sudo apt-get install compton cd ~/.config nano compton.conf
将其粘贴到 Nano 中(参见这里参见评论版本):
backend = "glx"; glx-no-stencil = true; glx-copy-from-front = false; glx-swap-method = "undefined"; shadow = true; no-dnd-shadow = true; no-dock-shadow = true; clear-shadow = true; shadow-radius = 5; shadow-offset-x = -5; shadow-offset-y = -5; shadow-opacity = 0.5; shadow-exclude = [ "! name~=''", "name = 'Notification'", "name = 'Plank'", "name = 'Docky'", "name = 'Kupfer'", "name = 'xfce4-notifyd'", "name *= 'VLC'", "name *= 'compton'", "name *= 'Chromium'", "name *= 'Chrome'", "name *= 'Firefox'", "class_g = 'Conky'", "class_g = 'Kupfer'", "class_g = 'Synapse'", "class_g ?= 'Notify-osd'", "class_g ?= 'Cairo-dock'", "class_g ?= 'Xfce4-notifyd'", "class_g ?= 'Xfce4-power-manager'" ]; shadow-ignore-shaped = false; menu-opacity = 1; inactive-opacity = 1; active-opacity = 1; frame-opacity = 1; inactive-opacity-override = false; alpha-step = 0.06; blur-background-fixed = false; blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ]; fading = true; fade-delta = 4; fade-in-step = 0.03; fade-out-step = 0.03; fade-exclude = [ ]; mark-wmwin-focused = true; mark-ovredir-focused = true; use-ewmh-active-win = true; detect-rounded-corners = true; detect-client-opacity = true; refresh-rate = 0; vsync = "opengl-swc"; dbe = false; paint-on-overlay = true; sw-opti = false; unredir-if-possible = true; focus-exclude = [ ]; detect-transient = true; detect-client-leader = true; wintypes: { tooltip = { fade = true; shadow = false; opacity = 0.85; focus = true; }; };
- 按CTRL+X然后Y按Enter保存并退出。
现在运行此命令:
compton
您的屏幕将不再闪烁,并且将不再出现画面撕裂!