Layout: Fix layer layout bug when decreasing tag layers
This commit is contained in:
parent
ff729f59fa
commit
6f17f0e5f7
@ -629,7 +629,7 @@ mirror(int screen, Bool horizontal)
|
||||
void
|
||||
layer(int screen)
|
||||
{
|
||||
Client *c;
|
||||
Client *c;
|
||||
XRectangle geo = { 0 };
|
||||
XRectangle sg = sgeo[screen];
|
||||
int n, i, l = tags[screen][seltag[screen]].layers;
|
||||
@ -649,7 +649,10 @@ layer(int screen)
|
||||
}
|
||||
|
||||
for(c = tiled_client(screen, clients); c; c = tiled_client(screen, c->next))
|
||||
{
|
||||
for(; c->layer > l; --(c->layer));
|
||||
++nl[c->layer];
|
||||
}
|
||||
|
||||
for(i = 0, c = tiled_client(screen, clients); c; c = tiled_client(screen, c->next), ++i)
|
||||
{
|
||||
@ -657,8 +660,6 @@ layer(int screen)
|
||||
c->flags &= ~(MaxFlag | LMaxFlag);
|
||||
c->flags |= TileFlag;
|
||||
|
||||
for(; c->layer > l; --(c->layer));
|
||||
|
||||
geo.x = x[c->layer];
|
||||
geo.height = (sg.height / l) - BORDH;
|
||||
geo.width = (sg.width / ((nl[c->layer]) ? nl[c->layer] : 1)) - BORDH * 2;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user