feat: 让 bar 支持点击触发动作
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 事件路由:将运行时事件翻译为语义命令
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user