[gnome-shell/gnome-3-14] screenShield: Do not wake up screen after adding hidden source



commit bff6f71488421fed571defa3212f5094ee5b6df1
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Feb 26 23:31:46 2015 +0100

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 32ef1ca..3a84468 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');
         }
     },
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]