add number to deck layout

This commit is contained in:
2025-04-06 00:28:38 +02:00
parent 50355093e6
commit 40e44ce1d8

1
dwl.c
View File

@@ -1292,6 +1292,7 @@ deck(Monitor *m)
} else { } else {
resize(c, (struct wlr_box){.x = m->w.x + mw, .y = m->w.y, resize(c, (struct wlr_box){.x = m->w.x + mw, .y = m->w.y,
.width = m->w.width - mw, .height = m->w.height}, 0); .width = m->w.width - mw, .height = m->w.height}, 0);
snprintf(m->ltsymbol, LENGTH(m->ltsymbol), "%d", n-1);
if (c == focustop(m)) if (c == focustop(m))
wlr_scene_node_raise_to_top(&c->scene->node); wlr_scene_node_raise_to_top(&c->scene->node);
} }