From bff6f71488421fed571defa3212f5094ee5b6df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 26 Feb 2015 23:31:46 +0100 Subject: [PATCH] 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 --- js/ui/screenShield.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 32ef1ca9e..3a844684f 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -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'); } },