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-button.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/login/logind-button.h') diff --git a/src/login/logind-button.h b/src/login/logind-button.h index e85aa81d0a..72a612e914 100644 --- a/src/login/logind-button.h +++ b/src/login/logind-button.h @@ -38,10 +38,11 @@ struct Button { int fd; bool lid_closed; + bool docked; }; Button* button_new(Manager *m, const char *name); void button_free(Button*b); int button_open(Button *b); int button_set_seat(Button *b, const char *sn); -int button_check_lid(Button *b); +int button_check_switches(Button *b); -- cgit v1.2.3-54-g00ecf