feat(action): 实现 switch_workspace cycle_layout 和 cycle_output 操作

This commit is contained in:
2026-05-07 03:21:27 +08:00
parent 2c3c264ddd
commit 56f8380028
3 changed files with 48 additions and 7 deletions

View File

@@ -81,7 +81,11 @@ void state_cleanup(state_t *state);
*/
const workspace_t *state_workspace_get(const state_t *state, workspace_id_t id);
const workspace_t *state_workspace_at(const state_t *state, size_t index);
bool state_workspace_cycle_layout(state_t *state, workspace_id_t workspace_id);
bool state_workspace_cycle_layout(
state_t *state,
workspace_id_t workspace_id,
int32_t delta
);
bool state_workspace_set_layout_by_index(
state_t *state,
workspace_id_t workspace_id,