From ddea54a5398c123a4711243e55811c8ba26f8b85 Mon Sep 17 00:00:00 2001 From: Victor Toso Date: Thu, 12 May 2016 09:25:49 +0200 Subject: [PATCH] ScreenShield: set LockedHint property from systemd Logind recently got support for a hint property in Session Object to inform if session is Locked or not. It is up to desktop environments to keep this property up to date. https://bugzilla.gnome.org/show_bug.cgi?id=764773 --- js/misc/loginManager.js | 3 +++ js/ui/screenShield.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/js/misc/loginManager.js b/js/misc/loginManager.js index 6ed826226..7db94d406 100644 --- a/js/misc/loginManager.js +++ b/js/misc/loginManager.js @@ -40,6 +40,9 @@ const SystemdLoginSessionIface = ' \ \ \ \ + \ + \ + \ \ '; diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index d8d991c20..18f512445 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -559,6 +559,9 @@ const ScreenShield = new Lang.Class({ if (prevIsActive != this._isActive) this.emit('active-changed'); + if (this._loginSession) + this._loginSession.SetLockedHintRemote(active); + this._syncInhibitor(); },