dbus: fix win_get with "id"

The target name got changed to "base.id" by accident.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2022-01-27 01:19:31 +00:00
parent c3fb9ef017
commit b4e0e6128c

View File

@@ -761,7 +761,10 @@ static bool cdbus_process_win_get(session_t *ps, DBusMessage *msg) {
return true; \
}
cdbus_m_win_get_do(base.id, cdbus_reply_wid);
if (!strcmp(target, "id")) {
cdbus_reply_wid(ps, msg, w->base.id);
return true;
}
// next
if (!strcmp("next", target)) {