feat(bar): 实现 bar 可见性切换 action

This commit is contained in:
2026-06-06 04:44:56 +08:00
parent be37b17c2e
commit adf839bf21
11 changed files with 152 additions and 5 deletions

View File

@@ -22,6 +22,7 @@ typedef enum command_type_t {
ZDWM_COMMAND_SET_CURRENT_OUTPUT,
ZDWM_COMMAND_SET_LAYOUT,
ZDWM_COMMAND_SET_BINDING_MODE,
ZDWM_COMMAND_SET_BAR_VISIBILITY,
ZDWM_COMMAND_QUIT,
} command_type_t;
@@ -64,6 +65,10 @@ typedef struct set_binding_mode_command_t {
zdwm_binding_mode_id_t mode;
} set_binding_mode_command_t;
typedef struct visibility_command_t {
bool visible;
} visibility_command_t;
typedef struct quit_command_t {
bool will_restart;
} quit_command_t;
@@ -98,6 +103,7 @@ typedef struct command_t {
set_current_output_command_t current_output;
set_layout_command_t layout;
set_binding_mode_command_t binding_mode;
visibility_command_t bar_visibility;
quit_command_t quit;
} as;
} command_t;