You are not logged in.

#1 2013-02-21 01:25:40

AurosGamma
Member
From: San Cristobal,Venezuela
Registered: 2011-02-22
Posts: 132

[SOLVED] Compton drawing ugly Notify-OSD shadow

I have Openbox installed in my machine. For compositing I installed compton-git from AUR and everything is working fine. The problem is that I cannot prevent compton from drawing a shadow to the notification window (notify-osd). Here's a screenshot:

http://i.imgur.com/3oHHJis.png

and this is my ~/.compton.conf file:

# Shadow
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = false;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
# shadow-opacity = 0.7;
# shadow-red = 0.0;
# shadow-green = 0.0;
# shadow-blue = 0.0;
shadow-exclude = [ "n:e:Notification", "name = 'Notification'", "class_g = 'Conky'" ];
# shadow-exclude = "n:e:Notification";
shadow-ignore-shaped = false;

# Opacity
menu-opacity = 0.9;
inactive-opacity = 0.9;
frame-opacity = 1.0;
inactive-opacity-override = false;
alpha-step = 0.06;
# inactive-dim = 0.2;
# inactive-dim-fixed = true;
# blur-background = true;
# blur-background-frame = true;
blur-background-fixed = false;

# Fading
fading = true;
# fade-delta = 30;
fade-in-step = 0.1;
fade-out-step = 0.1;
# no-fading-openclose = true;

# Other
mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = false;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "none";
dbe = false;
paint-on-overlay = false;
sw-opti = false;
unredir-if-possible = false;
focus-exclude = [ ];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];

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

How can I fix this? I tried with the shadow-exclude value, but it didn't work.

Regards.

Edit: I was playing around with the configuration file and found that the option 'clear-shadow = false' makes the trick, but now the shadow rendered behind notify-osd is too dark, check here. Is there any way to add an exception rule to the notification window?

Edit 2: The problem gets solved by adding the following exclusion rule to the 'shadow-exclude' variable:

"class_g ?= 'Notify-osd'"

Including quotes.

Last edited by AurosGamma (2013-02-23 17:04:31)

Offline

#2 2013-02-21 11:56:20

valr
Member
From: Belgium
Registered: 2012-01-08
Posts: 62

Re: [SOLVED] Compton drawing ugly Notify-OSD shadow

Stupid question: are you sure that the window name of the notification is "Notification" ?
Have you checked with xwininfo ?

If all seems correct, you could ask on IRC in the chan #compton

Offline

#3 2013-02-21 12:35:25

AurosGamma
Member
From: San Cristobal,Venezuela
Registered: 2011-02-22
Posts: 132

Re: [SOLVED] Compton drawing ugly Notify-OSD shadow

valr wrote:

Stupid question: are you sure that the window name of the notification is "Notification" ?
Have you checked with xwininfo ?

If all seems correct, you could ask on IRC in the chan #compton

That's the problem, I'm not sure about that. And I'm not sure how I should use xwininfo to get the values for notify-osd, and how should I put those values in the config file. I searched for documentation and found nothing. I'll try to ask in the IRC channel and report back.

Best regards.

Offline

Board footer

Powered by FluxBB