diff --git a/src/notification.h b/src/notification.h index fa3effa..d02f929 100644 --- a/src/notification.h +++ b/src/notification.h @@ -33,7 +33,6 @@ typedef struct _notification { char *appname; char *summary; char *body; - bool icon_overridden; char *icon; RawImage *raw_icon; char *msg; /* formatted message */ diff --git a/src/rules.c b/src/rules.c index fa30c7c..a9455b2 100644 --- a/src/rules.c +++ b/src/rules.c @@ -25,7 +25,8 @@ void rule_apply(rule_t *r, notification *n) if (r->new_icon) { g_free(n->icon); n->icon = g_strdup(r->new_icon); - n->icon_overridden = true; + rawimage_free(n->raw_icon); + n->raw_icon = NULL; } if (r->fg) n->color_strings[ColFG] = r->fg; diff --git a/src/x11/x.c b/src/x11/x.c index 3647222..0710b67 100644 --- a/src/x11/x.c +++ b/src/x11/x.c @@ -425,7 +425,7 @@ static colored_layout *r_init_shared(cairo_t *c, notification *n) GdkPixbuf *pixbuf = NULL; - if (n->raw_icon && !n->icon_overridden && + if (n->raw_icon && settings.icon_position != icons_off) { pixbuf = get_pixbuf_from_raw_image(n->raw_icon);