Xubuntu 会出现屏幕撕裂的情况,Ubuntu 则没有问题

Xubuntu 会出现屏幕撕裂的情况,Ubuntu 则没有问题

我的一台旧台式机上安装了 Ubuntu 14.04 和 Xubuntu 16.04。

虽然两者都运行良好,但我在 Xubuntu 中拖动窗口时遇到了屏幕撕裂的情况。不过,我在 Ubuntu 上没有遇到这种情况。

它使用主板内置的 AMD 图形芯片。

笔记:这种确切的情况也适用于配备 GTX650 显卡的主台式机......


此时,我认为这与 Untiy 作为 3D DE 而 XFCE 作为 2D DE 有关...

答案1

注:这些指示已从邓肯·洛克 (Duncan Lock) 博客的原始来源。


  1. 禁用 XFCE 的内置合成器:

    在此处输入图片描述


  1. 打开终端并运行以下命令:

     sudo apt-get update
     sudo apt-get install compton
     cd ~/.config
     nano compton.conf
    

  1. 将其粘贴到 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;
        };
    };
    

  1. CTRL+X然后YEnter保存并退出。

  1. 现在运行此命令:compton

    您的屏幕将不再闪烁,并且将不再出现画面撕裂!


  1. 最后,只需将其添加到您的启动应用程序中:

    在此处输入图片描述

相关内容