mirror of
https://github.com/tiyn/dwl.git
synced 2026-01-11 09:29:47 +01:00
Compare commits
2 Commits
7fbceedff4
...
deck
| Author | SHA1 | Date | |
|---|---|---|---|
| f33af5fca8 | |||
| c1702d5d8b |
3
dwl.c
3
dwl.c
@@ -1249,7 +1249,7 @@ deck(Monitor *m)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (n > m->nmaster)
|
if (n > m->nmaster)
|
||||||
mw = m->nmaster ? ROUND(m->w.width * m->mfact) : 0;
|
mw = m->nmaster ? round(m->w.width * m->mfact) : 0;
|
||||||
else
|
else
|
||||||
mw = m->w.width;
|
mw = m->w.width;
|
||||||
i = my = 0;
|
i = my = 0;
|
||||||
@@ -1263,6 +1263,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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user