updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / musca / 0003-fix-pad.patch
blob2d922f95cd27c56166dc5f12c0638023e56b8122
1 diff --git a/musca.c b/musca.c
2 index 726c5a6..b284c55 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 @@ -1998,6 +1999,8 @@ void group_resize(group *ta, int l, int r, int t, int b)
16 else if (b > ta->b) { frames_make_gap(ta, ta->l, sh - b, sw - ta->l - ta->r, b - ta->b); ta->b = b; }
17 FOR_RING (NEXT, f, ta->frames, i)
18 frame_update(f);
19 + FOR_RING (NEXT, c, ta->clients, j)
20 + client_configure(c,NULL);
22 group* group_by_name(head *h, char *name)
24 --
25 1.7.6