mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
minor floating mode fix for setborderpx patch
This commit is contained in:
parent
6eeb5ad13b
commit
216c95d86e
@ -17,11 +17,12 @@ setborderpx(const Arg *arg)
|
||||
c->bw = selmon->borderpx = 0;
|
||||
else
|
||||
c->bw = selmon->borderpx;
|
||||
|
||||
if (c->isfloating || !selmon->lt[selmon->sellt]->arrange)
|
||||
{
|
||||
if (arg->i != 0)
|
||||
if (arg->i != 0 && prev_borderpx + arg->i >= 0)
|
||||
resize(c, c->x, c->y, c->w-(arg->i*2), c->h-(arg->i*2), 0);
|
||||
else if (arg->i != 0)
|
||||
resizeclient(c, c->x, c->y, c->w, c->h);
|
||||
else if (prev_borderpx > borderpx)
|
||||
resize(c, c->x, c->y, c->w + 2*(prev_borderpx - borderpx), c->h + 2*(prev_borderpx - borderpx), 0);
|
||||
else if (prev_borderpx < borderpx)
|
||||
@ -29,4 +30,4 @@ setborderpx(const Arg *arg)
|
||||
}
|
||||
}
|
||||
arrange(selmon);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user