From 2d3a6d3cb7424b22689bfcac314c33863a73ea07 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 26 Feb 2018 10:39:15 +0800 Subject: compton: Fix the weird double shadow around some GTK3 apps Credit: https://github.com/chjj/compton/issues/189 --- _config/compton.conf | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to '_config') diff --git a/_config/compton.conf b/_config/compton.conf index 5eed371..257c56b 100644 --- a/_config/compton.conf +++ b/_config/compton.conf @@ -80,28 +80,15 @@ shadow-opacity = 0.85; # have visual glitches (most applications are fine, only apps that do # weird things with xshapes or argb are affected). # -# This list includes all the affected apps I found in my testing. # The "! name~=''" part excludes shadows on any "Unknown" windows, # this prevents a visual glitch with the XFWM alt tab switcher. +# +# The "_GTK_FRAME_EXTENTS@:c" fixes the weird double shadow around +# GTK3 applications. +# Credit: https://github.com/chjj/compton/issues/189 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'" + "_GTK_FRAME_EXTENTS@:c" ]; # Avoid drawing shadow on all shaped windows # (see also: --detect-rounded-corners) @@ -150,7 +137,7 @@ fade-out-step = 0.03; #no-fading-openclose = true; # Specify a list of conditions of windows that should not be faded. -fade-exclude = [ ]; +fade-exclude = [ "_GTK_FRAME_EXTENTS@:c" ]; ################################# # Other -- cgit v1.2.2