|
|
079f41ce8a
|
refactor: 从 core 中抽出跨模块契约建立 interface/common 模块分层
引入 interface/(零实现声明层)与 common/(共享 ADT 操作层),把跨模块
契约从 core 实现里抽出来,依赖方向回到单向(base ← interface ← common ←
各实现层)。docs/module-layering.org 记录完整方案与判定标准。
interface/(纯类型与多态接口声明,零 .c):
- types.h / event.h / backend.h 从 core 移入
- effect.h 新建(effect_t 从 plan.h 抽出)
common/(多实现层共用的自包含操作,.h + .c):
- event.{h,c}:event_reset / event_cleanup
- listeners.{h,c}:listeners 维护(add / cleanup);notify 留 core
- window.{h,c}:window_list + layer_props/metadata cleanup + window_classify_layer
- workspace.{h,c}:workspace_desc(从 wm_desc.h 拆出,改真实函数)
window 相关整理:
- window_layer_type_t 上浮 interface/types.h(common 的 classify 需要)
- window_classify_layer 移 common/window
- window_info_t 独立成 core/window_info.h(state/command 共享,不寄生)
- 删除 wm_desc.h,base/window_list 并入 common/window
全项目 include 路径同步更新
|
2026-06-25 03:00:30 +08:00 |
|
|
|
bf3de7fb92
|
style: 禁掉 clang-format 的 AlignConsecutiveAssignments 规则并重新格式化整个项目
|
2026-06-24 13:05:56 +08:00 |
|
|
|
8f671bd755
|
feat: bar 点击回调添加按键和修饰键参数
on_click 新增 modifiers/button,使 bar item 可按按键与修饰键区分动作;
因参数增多,回调与 bar_click 改用结构参数封装。同时将 button_t 与
modifier 类型提升至公开头 include/zdwm/types.h 以供使用
|
2026-06-23 07:42:52 +08:00 |
|
|
|
195aeb5166
|
fix(bar): 修复点击 workspace 末尾 layout 单元无法切换布局的 bug
|
2026-06-23 07:01:23 +08:00 |
|
|
|
6d06b61134
|
fix(bar): workspaces 移除窗口时找到后立即 break 避免不必要的遍历
|
2026-06-16 19:13:30 +08:00 |
|
|
|
41f82d7039
|
feat(bar): 在 workspace 列表末尾显示当前 workspace 布局符号
|
2026-06-15 19:50:42 +08:00 |
|
|
|
d97cfba8dd
|
fix(bar): 修复 workspace bar state 销毁时的内存泄露
|
2026-06-15 17:03:28 +08:00 |
|
|
|
4535e171a0
|
feat(bar): 实现 bar 布局排版和渲染绘制流程
|
2026-06-09 20:01:11 +08:00 |
|
|
|
87535835a8
|
fix(bar): 修复 workspaces 中 destroy_state 接口内存未正确释放 bug
|
2026-06-08 01:07:15 +08:00 |
|
|
|
fed04cbffc
|
refactor(bar): 隐藏 workspaces 模块内部细节仅保留必要的对外接口
|
2026-06-08 00:35:59 +08:00 |
|
|
|
ff40b3caa0
|
feat(bar): 添加状态栏 bar 模块的基础架构和 workspace 指示器
|
2026-06-05 02:23:01 +08:00 |
|