diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-21 11:57:48 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-21 11:57:48 +0200 |
commit | 409133be63387fc04d927e8aecd2f6ba03d2f143 (patch) | |
tree | 53805338e9e71c3344d6f46320c9dbf506612768 /src/login/logind-button.c | |
parent | 68e9f6e6be9e6e14a71788b490ba8cdc3ed7f2b5 (diff) |
logind: allow users to override their own suspend/sleep inhibitors
Diffstat (limited to 'src/login/logind-button.c')
-rw-r--r-- | src/login/logind-button.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |