feat: 让 bar 支持点击触发动作

This commit is contained in:
2026-06-23 06:57:38 +08:00
parent 29e0f1e2dc
commit 42bddf5ac7
5 changed files with 86 additions and 2 deletions

View File

@@ -371,7 +371,7 @@ static void toggle_bar_visibility(
command_buffer_push(command_buffer, &set_bar_visibility_command);
}
static void policy_resolve_action(
void policy_resolve_action(
const policy_context_t *ctx,
const zdwm_action_t *action,
command_buffer_t *out

View File

@@ -33,6 +33,12 @@ typedef struct policy_context_t {
const policy_bar_t bar;
} policy_context_t;
void policy_resolve_action(
const policy_context_t *ctx,
const zdwm_action_t *action,
command_buffer_t *out
);
/**
* @brief 事件路由:将运行时事件翻译为语义命令
*