From 2d62c530d2b4c2730abff715b7342f1402114513 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 24 Feb 2014 16:22:23 +0100 Subject: 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. --- src/login/logind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/login/logind.c') 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); -- cgit v1.2.3-54-g00ecf