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
parent e23a03d639
commit c2104dbf85

View File

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