chjj / compton

A compositor for X11.
Other
2.24k stars 502 forks source link

Active window of Blender transparent if Xfce4+Compton #386

Open ghost opened 7 years ago

ghost commented 7 years ago

Currently I use LinuxMint 17.3 Xfce4 (amd64)

I have ATI RS600, and to fix some tearing issues switch DE to Xfce4+Compton.

After this active window of Blender 2.49b always show as transparent, but other programs, including Blender 2.78, shown normally when active (without transparency). xfce4+compton blender

So, how fix it?

kn00tcn commented 7 years ago

are you actually using transparency in compton?

maybe detect-transient or detect-client-leader are of use?

ghost commented 7 years ago

@kn00tcn, maybe, I don't know.

Can you give me step-by-step guide how switch off this transparency?

kn00tcn commented 7 years ago

did you copy someone's compton config without reading about each option? sounds like you should paste your config here

ghost commented 7 years ago

@kn00tcn, NO, its default config of LinuxMint 17.3

you should paste your config here

What is direct path to this config file?

kn00tcn commented 7 years ago

wait, why arent you updated to 18?

i dont know the path, i hope it's in the livedvd, or wait that's not with xfce

WELL how about an alternative, switch to non composited mode, then run compton manually from terminal compton --config /path/to/file.conf

my conf file so far is

backend = "glx";
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
glx-swap-method = "buffer-age";

refresh-rate = 60;
vsync = "opengl-oml";
paint-on-overlay = true;
#unredir-if-possible = true;

detect-transient = true;
detect-client-leader = true;
detect-rounded-corners = true;
detect-client-opacity = true;

shadow = true;
shadow-ignore-shaped = true;
shadow-exclude = [
    "! name~=''",
    "class_g ?= 'Firefox' && class_i ?= 'Popup' && width < 64",
    "class_g ?= 'Xfwm4'",
    "_GTK_FRAME_EXTENTS@:c",
    "bounding_shaped && !rounded_corners"
];
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 10;
shadow-offset-x = -12;
shadow-offset-y = -12;
shadow-opacity = 0.5;

fading = true;
fade-delta = 4;
fade-in-step = 0.03;
fade-out-step = 0.03;

mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = true;

wintypes : {
    fullscreen : {
        shadow = false;
    }
}

i have tested this in xfce & mate, but not mint's old versions, my goal was fading windows & vsync for videos & firefox

you might want to read up on what the options do, the swap method & vsync ogl method are the first ones to change if you have broken artifacts on screen

uncomment the unredirect line if fullscreen games run poorly