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

@@ -31,6 +31,8 @@ typedef enum zdwm_action_type_t {
ZDWM_ACTION_WINDOW_SEND_TO_WORKSPACE_SAME_OUTPUT_BY_INDEX,
ZDWM_ACTION_WINDOW_CYCLE_OUTPUT,
ZDWM_ACTION_BAR_TOGGLE_VISIBILITY,
} zdwm_action_type_t;
typedef struct zdwm_action_data_spawn_t {

View File

@@ -5,6 +5,7 @@
#include <stddef.h>
#include <stdint.h>
#include <zdwm/action.h>
#include <zdwm/bar.h>
#include <zdwm/layout.h>
#include <zdwm/listeners.h>
#include <zdwm/rules.h>
@@ -206,6 +207,14 @@ typedef struct zdwm_api_t {
);
/** @} */
/** @name bar 配置
* @{ */
void (*set_bar_config)(
zdwm_config_builder_t *builder,
zdwm_bar_config_t config
);
/** @} */
} zdwm_api_t;
/**