aboutsummaryrefslogtreecommitdiff
path: root/swayidle
diff options
context:
space:
mode:
authorvil <vil@vil.lv>2018-06-17 17:37:58 -0400
committerGitHub <noreply@github.com>2018-06-17 17:37:58 -0400
commit8884a063c1c11cb1e2370c3f172fcb9ebd59c991 (patch)
tree7f2fc2f6cd4ba948df2e9e119e2e109973f638db /swayidle
parent54a5ee2747c3eae35e4fec400d1efc6ee7509a38 (diff)
parent7c44ca95f9aef526c6cfa8c2d3704af39755f38b (diff)
downloadsway-8884a063c1c11cb1e2370c3f172fcb9ebd59c991.tar.xz
Merge branch 'master' into mark-pool-buffers-busy
Diffstat (limited to 'swayidle')
-rw-r--r--swayidle/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/swayidle/main.c b/swayidle/main.c
index d83ab98d..7666578f 100644
--- a/swayidle/main.c
+++ b/swayidle/main.c
@@ -127,7 +127,8 @@ void acquire_sleep_lock() {
static int prepare_for_sleep(sd_bus_message *msg, void *userdata,
sd_bus_error *ret_error) {
- bool going_down = true;
+ /* "b" apparently reads into an int, not a bool */
+ int going_down = 1;
int ret = sd_bus_message_read(msg, "b", &going_down);
if (ret < 0) {
wlr_log(L_ERROR, "Failed to parse D-Bus response for Inhibit: %s",