From 3219f21f2f36161fc754e41398f88253d2423303 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Thu, 13 Sep 2012 07:11:14 +0200 Subject: [PATCH] match behaviour of transparency in dunstrc and config.h The transparency value in dunstrc was the inverse of the transparency value in config.h. --- dunst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dunst.c b/dunst.c index 9632b8c..7399096 100644 --- a/dunst.c +++ b/dunst.c @@ -1270,7 +1270,7 @@ void setup(void) CopyFromParent, DefaultVisual(dc->dpy, DefaultScreen(dc->dpy)), CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); - setopacity(dc, win, (unsigned long)(transparency * (0xffffffff/100))); + setopacity(dc, win, (unsigned long)((100 - transparency) * (0xffffffff/100))); grab_key(&history_ks); } @@ -1566,7 +1566,7 @@ dunst_ini_handle(void *user_data, const char *section, else if (strcmp(name, "separator_height") == 0) separator_height = atoi(value); else if (strcmp(name, "transparency") == 0) - transparency = (100 - atoi(value)); + transparency = atoi(value); if (strcmp(name, "separator_color") == 0) { char *str = dunst_ini_get_string(value); if (strcmp(str, "auto") == 0)