From 409133be63387fc04d927e8aecd2f6ba03d2f143 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 21 Sep 2012 11:57:48 +0200 Subject: logind: allow users to override their own suspend/sleep inhibitors --- src/login/logind-button.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/login/logind-button.c') diff --git a/src/login/logind-button.c b/src/login/logind-button.c index d0c9ccd833..e2d9fd2b0f 100644 --- a/src/login/logind-button.c +++ b/src/login/logind-button.c @@ -188,7 +188,7 @@ static int button_handle( } /* If the key handling is inhibited, don't do anything */ - if (manager_is_inhibited(b->manager, inhibit_key, INHIBIT_BLOCK, NULL, true)) { + if (manager_is_inhibited(b->manager, inhibit_key, INHIBIT_BLOCK, NULL, true, false, 0)) { log_debug("Refusing key handling, %s is inhibited.", inhibit_what_to_string(inhibit_key)); return 0; } @@ -197,7 +197,7 @@ static int button_handle( /* If the actual operation is inhibited, warn and fail */ if (!ignore_inhibited && - manager_is_inhibited(b->manager, inhibit_operation, INHIBIT_BLOCK, NULL, false)) { + manager_is_inhibited(b->manager, inhibit_operation, INHIBIT_BLOCK, NULL, false, false, 0)) { /* If this is just a recheck of the lid switch then don't warn about anything */ -- cgit v1.2.3-54-g00ecf