ScreenShield: wake up the screen when new notifications appear

This way the user is immediately notified when something happens.

https://bugzilla.gnome.org/show_bug.cgi?id=703084
This commit is contained in:
Giovanni Campagna
2013-07-14 16:20:49 +02:00
parent 24f142df1d
commit 137cbbd141
3 changed files with 38 additions and 0 deletions

View File

@ -305,7 +305,9 @@ const NotificationsBox = new Lang.Class({
},
onCompleteScope: this
});
this._updateVisibility();
Shell.util_wake_up_screen();
}
},
@ -328,7 +330,10 @@ const NotificationsBox = new Lang.Class({
obj.sourceBox.visible = obj.visible &&
(source.unseenCount > (obj.musicNotification ? 1 : 0));
this._updateVisibility();
if (obj.sourceBox.visible)
Shell.util_wake_up_screen();
},
_visibleChanged: function(source, obj) {
@ -342,6 +347,8 @@ const NotificationsBox = new Lang.Class({
source.unseenCount > (obj.musicNotification ? 1 : 0);
this._updateVisibility();
if (obj.sourceBox.visible)
Shell.util_wake_up_screen();
},
_detailedChanged: function(source, obj) {