[gnome-settings-daemon] power: don't remove the inhibitor on laptop lid close
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: don't remove the inhibitor on laptop lid close
- Date: Wed, 18 Sep 2013 13:54:57 +0000 (UTC)
commit e283537066a3d97073d9993a71e61ac7b72e823d
Author: Giovanni Campagna <gcampagn redhat com>
Date: Wed Sep 18 13:47:30 2013 +0200
power: don't remove the inhibitor on laptop lid close
If suspend_on_lid_close() returns FALSE, it means we should not
suspend, because there are external monitors, so we must not
remove the inhibitor (or logind will do the default thing, which
is suspending)
https://bugzilla.gnome.org/show_bug.cgi?id=708160
plugins/power/gsd-power-manager.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 0bc521a..cde947e 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2175,7 +2175,6 @@ do_lid_closed_action (GsdPowerManager *manager)
restart_inhibit_lid_switch_timer (manager);
} else {
stop_inhibit_lid_switch_timer (manager);
- uninhibit_lid_switch (manager);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]