diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-18 15:58:48 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-18 15:58:48 +1000 |
commit | 645bf446fab8db581b04babb1a34aa3c40428058 (patch) | |
tree | 4b7374d58e0b6a5b183049bc7551db8016f8a296 /swayidle/main.c | |
parent | 9e96cfd310c4e5dc60f07d772e60b139ff7dc448 (diff) | |
parent | 202ee511503bc7c6a18dec440ac3cdb8d5e8f859 (diff) |
Merge remote-tracking branch 'upstream/master' into atomic
Diffstat (limited to 'swayidle/main.c')
-rw-r--r-- | swayidle/main.c | 3 |
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", |