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:
parent
0adf3b84a7
commit
bff6f71488
@ -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');
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user