screenShield: Do not wake up screen after adding hidden source

The screen should be woken up when a new notification is shown on
the lock screen, but not when a notification arrives while disabled.
Add a missing condition to fix.

https://bugzilla.gnome.org/show_bug.cgi?id=744114
This commit is contained in:
Florian Müllner 2015-02-26 23:31:46 +01:00 committed by Adel Gadllah
parent 0adf3b84a7
commit bff6f71488

View File

@ -301,7 +301,8 @@ const NotificationsBox = new Lang.Class({
});
this._updateVisibility();
this.emit('wake-up-screen');
if (obj.sourceBox.visible)
this.emit('wake-up-screen');
}
},