chiark / gitweb /
logind: detect whether the system is docked, and if it is inhibit lid switch processing
[elogind.git] / src / login / logind.c
index 9cbd9e817fc2c8028e68104a1e6021cbf828e860..3a514bbf81311cca8b43978519d9e1efb3659294 100644 (file)
@@ -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);