aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/indicator-notifications.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/indicator-notifications.c b/src/indicator-notifications.c
index db53df7..2ab4083 100644
--- a/src/indicator-notifications.c
+++ b/src/indicator-notifications.c
@@ -805,6 +805,12 @@ message_received_cb(DBusSpy *spy, Notification *note, gpointer user_data)
g_return_if_fail(IS_INDICATOR_NOTIFICATIONS(user_data));
IndicatorNotifications *self = INDICATOR_NOTIFICATIONS(user_data);
+ /* Discard notifications if we are hidden */
+ if(self->priv->hide_indicator) {
+ g_object_unref(note);
+ return;
+ }
+
/* Discard useless notifications */
if(notification_is_private(note) || notification_is_empty(note)) {
g_object_unref(note);