Skip i++ if c->isfullscreen

continue; to avoid i++

It doesn't affect the behavior of dwl but makes sense
This commit is contained in:
Stivvo 2020-12-26 14:44:43 +01:00
parent 713a036db6
commit 6890998110

6
dwl.c
View File

@ -1733,9 +1733,11 @@ tile(Monitor *m)
wl_list_for_each(c, &clients, link) {
if (!VISIBLEON(c, m) || c->isfloating)
continue;
if (c->isfullscreen)
if (c->isfullscreen) {
maximizeclient(c);
else if (i < m->nmaster) {
continue;
}
if (i < m->nmaster) {
h = (m->w.height - my) / (MIN(n, m->nmaster) - i);
resize(c, m->w.x, m->w.y + my, mw, h, 0);
my += c->geom.height;