[gnome-shell] messageTray: Fix idle tracking condition
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: Fix idle tracking condition
- Date: Tue, 12 Mar 2013 15:59:29 +0000 (UTC)
commit 78dacfa865fe772c71a8adf71b432a73d2dbb859
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Mar 11 17:29:41 2013 -0400
messageTray: Fix idle tracking condition
The user is active if they have less than IDLETIME, not if
they have more than it.
This fixes an issue where notifications may never go away.
https://bugzilla.gnome.org/show_bug.cgi?id=695659
js/ui/messageTray.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 2c1f328..0b1b502 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2442,7 +2442,7 @@ const MessageTray = new Lang.Class({
_showNotification: function() {
this._notification = this._notificationQueue.shift();
- this._userActiveWhileNotificationShown = this.idleMonitor.get_idletime() > IDLE_TIME;
+ this._userActiveWhileNotificationShown = this.idleMonitor.get_idletime() <= IDLE_TIME;
if (!this._userActiveWhileNotificationShown) {
// If the user isn't active, set up a watch to let us know
// when the user becomes active.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]