summaryrefslogtreecommitdiff
path: root/src/login/logind.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-24 16:22:23 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-24 16:22:23 +0100
commit2d62c530d2b4c2730abff715b7342f1402114513 (patch)
treea04f57d94d9b01a958b922da5608ba9630efff26 /src/login/logind.c
parent539237644eef4dbb9e5428dd249d7ee8392427d0 (diff)
logind: detect whether the system is docked, and if it is inhibit lid switch processing
This should make operation nicer with docking stations, but will not cover anything that does not implement SW_DOCK.
Diffstat (limited to 'src/login/logind.c')
-rw-r--r--src/login/logind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind.c b/src/login/logind.c
index 9cbd9e817f..3a514bbf81 100644
--- a/src/login/logind.c
+++ b/src/login/logind.c
@@ -1039,7 +1039,7 @@ int manager_startup(Manager *m) {
inhibitor_start(inhibitor);
HASHMAP_FOREACH(button, m->buttons, i)
- button_check_lid(button);
+ button_check_switches(button);
manager_dispatch_idle_action(NULL, 0, m);