From 0f3926b912e44f099a629a3e155802638239bd10 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 29 Jan 2022 00:45:13 +0000 Subject: [PATCH] dbus: add mappepd property to windows Signed-off-by: Yuxuan Shui --- src/dbus.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dbus.c b/src/dbus.c index 7b47945..b2fef70 100644 --- a/src/dbus.c +++ b/src/dbus.c @@ -864,6 +864,12 @@ cdbus_process_window_property_get(session_t *ps, DBusMessage *msg, cdbus_window_ return true; \ } + if (!strcmp("mapped", target)) { + cdbus_reply(ps, msg, cdbus_append_bool_variant, + (bool[]){win_is_mapped_in_x(w)}); + return true; + } + if (!strcmp(target, "id")) { cdbus_reply(ps, msg, cdbus_append_wid_variant, &w->base.id); return true; @@ -1459,6 +1465,7 @@ static bool cdbus_process_window_introspect(session_t *ps, DBusMessage *msg) { " \n" " \n" " \n" + " \n" " \n" " \n" "\n";