summaryrefslogtreecommitdiff
path: root/src/logind-session-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-21 22:29:25 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-21 22:29:25 +0200
commit77527da0a02029ce9c5ec86d5db5ea42147a658f (patch)
treeb8601a8d026bf6aef5445cb070f42edf1ce834a4 /src/logind-session-dbus.c
parent9418f14772e7e646fe981d45506b3bbce68d6ccf (diff)
logind: make idle hint logic work
Diffstat (limited to 'src/logind-session-dbus.c')
-rw-r--r--src/logind-session-dbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logind-session-dbus.c b/src/logind-session-dbus.c
index 0ce880c590..b0e592d215 100644
--- a/src/logind-session-dbus.c
+++ b/src/logind-session-dbus.c
@@ -144,7 +144,7 @@ static int bus_session_append_user(DBusMessageIter *i, const char *property, voi
static int bus_session_append_active(DBusMessageIter *i, const char *property, void *data) {
Session *s = data;
- bool b;
+ dbus_bool_t b;
assert(i);
assert(property);
@@ -159,13 +159,13 @@ static int bus_session_append_active(DBusMessageIter *i, const char *property, v
static int bus_session_append_idle_hint(DBusMessageIter *i, const char *property, void *data) {
Session *s = data;
- bool b;
+ int b;
assert(i);
assert(property);
assert(s);
- b = session_get_idle_hint(s, NULL);
+ b = session_get_idle_hint(s, NULL) > 0;
if (!dbus_message_iter_append_basic(i, DBUS_TYPE_BOOLEAN, &b))
return -ENOMEM;