commit a8b11805ad60b0e959c1024a2299742da9608560
parent 98fd32f255116c6b6be936071e83021d17ab6535
Author: garbeam <garbeam@localhost.localdomain>
Date: Mon, 5 Dec 2005 03:52:26 +0200
I don't care if lines are longer than 80 chars, we don't live in the 60s anymore
Diffstat:
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/cmd/wm/layout_column.c b/cmd/wm/layout_column.c
@@ -121,11 +121,7 @@ static void init_col(Area * a)
j = 0;
for (i = 0; i < (cols - 1); i++) {
col = acme->column[i];
- col->frame =
- (Frame **) attach_item_end((void **) col->frame,
- alloc_frame(&client[i]->rect,
- 1, 1),
- sizeof(Frame *));
+ col->frame = (Frame **) attach_item_end((void **) col->frame, alloc_frame(&client[i]->rect, 1, 1), sizeof(Frame *));
col->frame[0]->aux = col;
attach_frame_to_area(a, col->frame[0]);
attach_client_to_frame(col->frame[0], client[j]);
@@ -145,11 +141,7 @@ static void init_col(Area * a)
j = 0;
for (i = cols - 1; j < n; i--) {
col = acme->column[i];
- col->frame =
- (Frame **) attach_item_end((void **) col->frame,
- alloc_frame(&client[i]->rect,
- 1, 1),
- sizeof(Frame *));
+ col->frame = (Frame **) attach_item_end((void **) col->frame, alloc_frame(&client[i]->rect, 1, 1), sizeof(Frame *));
col->frame[0]->aux = col;
attach_frame_to_area(a, col->frame[0]);
attach_client_to_frame(col->frame[0], client[j]);
@@ -189,8 +181,7 @@ static void attach_col(Area * a, Client * c)
col = acme->column[acme->sel];
f = alloc_frame(&c->rect, 1, 1);
- col->frame = (Frame **) attach_item_end((void **) col->frame, f,
- sizeof(Frame *));
+ col->frame = (Frame **) attach_item_end((void **) col->frame, f, sizeof(Frame *));
f->aux = col;
col->refresh = 1;
attach_frame_to_area(a, f);
@@ -207,8 +198,7 @@ static void detach_col(Area * a, Client * c, int unmapped, int destroyed)
if (!col)
return; /* client was not attached, maybe exit(1) in
* such case */
- col->frame = (Frame **) detach_item((void **) col->frame, c->frame,
- sizeof(Frame *));
+ col->frame = (Frame **) detach_item((void **) col->frame, c->frame, sizeof(Frame *));
col->refresh = 1;
detach_client_from_frame(c, unmapped, destroyed);
detach_frame_from_area(f, 1);