updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / musca-fixed / 0003-fix-pad.patch
blobdcf07d7581ffbdfa82aeb4591a742bd952c67837
1 diff --git a/musca.c b/musca.c
2 index 726c5a6..63b85fa 100644
3 --- a/musca.c
4 +++ b/musca.c
5 @@ -1985,7 +1985,8 @@ void group_other()
6 // resize frames to match changes in the screen border padding
7 void group_resize(group *ta, int l, int r, int t, int b)
9 - frame *f = ta->frames; int i;
10 + frame *f = ta->frames; int i, j;
11 + client *c = ta->clients;
12 int sw = ta->head->screen->width;
13 int sh = ta->head->screen->height;
14 if (l < ta->l) { frames_fill_gap(ta, l, ta->t, ta->l - l, sh - ta->b, FRAMES_ALL); ta->l = l; }
15 @@ -1997,7 +1998,8 @@ void group_resize(group *ta, int l, int r, int t, int b)
16 if (b < ta->b) { frames_fill_gap(ta, ta->l, sh - ta->b, sw - ta->l - ta->r, ta->b - b, FRAMES_ALL); ta->b = b; }
17 else if (b > ta->b) { frames_make_gap(ta, ta->l, sh - b, sw - ta->l - ta->r, b - ta->b); ta->b = b; }
18 FOR_RING (NEXT, f, ta->frames, i)
19 - frame_update(f);
20 + FOR_RING (NEXT, f->cli, c, j)
21 + frame_update(f->cli->frame);
23 group* group_by_name(head *h, char *name)
25 --
26 1.7.6