[gnome-settings-daemon/gnome-3-22] power: Clarify suspend signal monitoring comment
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-22] power: Clarify suspend signal monitoring comment
- Date: Mon, 21 Aug 2017 17:14:44 +0000 (UTC)
commit e1e26f89e004abbc2ef3110acce2d012c7fafa3e
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 11 17:32:08 2017 +0200
power: Clarify suspend signal monitoring comment
We need to both watch for the signal and setup inhibitors
to be informed about suspend attempts, so move the comment
above both calls.
https://bugzilla.gnome.org/show_bug.cgi?id=786164
plugins/power/gsd-power-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index ceff16d..82c3ee7 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2396,10 +2396,10 @@ on_rr_screen_acquired (GObject *object,
/* ensure the default dpms timeouts are cleared */
backlight_enable (manager);
+ /* Set up a delay inhibitor to be informed about suspend attempts */
g_signal_connect (manager->priv->logind_proxy, "g-signal",
G_CALLBACK (logind_proxy_signal_cb),
manager);
- /* Set up a delay inhibitor to be informed about suspend attempts */
inhibit_suspend (manager);
/* track the active session */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]