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



commit c2104dbf85a153ec480b01390f56e4db2b6f2f78
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 76efd03..1cfc211 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -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');
         }
     },
 


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