feat(core/runtime): 集成布局计算到主循环

This commit is contained in:
2026-04-27 21:06:11 +08:00
parent 7413d7439a
commit 8d838135d6
5 changed files with 98 additions and 4 deletions

View File

@@ -10,8 +10,6 @@ bool fair(const zdwm_layout_ctx_t *ctx, zdwm_layout_result_t *out) {
auto count = (int32_t)ctx->window_count;
if (!windows || !count) return false;
zdwm_layout_result_reset(out);
auto columns = (int32_t)floor(sqrt(count));
if (columns * (columns + 1) <= count) ++columns;