wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit bb40fdde5b43dd959362555592c67ff7629c96db
parent d824b961b096c6925dde65659bb5a6842385d2aa
Author: garbeam <garbeam@localhost.localdomain>
Date:   Fri,  9 Dec 2005 03:46:59 +0200

added more stuff


Diffstat:
cmd/wm/layout_column.c | 16+++++++++++++++-
cmd/wm/wm.h | 3++-
2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/cmd/wm/layout_column.c b/cmd/wm/layout_column.c @@ -16,6 +16,7 @@ typedef struct Column Column; struct Acme { int sel; Container columns; + Container frames; }; struct Column { @@ -31,8 +32,11 @@ static void arrange_col(Area * a); static Bool attach_col(Area * a, Client * c); static void detach_col(Area * a, Client * c); static void resize_col(Frame * f, XRectangle * new, XPoint * pt); +static Container *get_frames_col(Area *a); +static void aux_col(Area *a, char *aux); -static Layout lcol = { "col", init_col, deinit_col, arrange_col, attach_col, detach_col, resize_col }; +static Layout lcol = { "col", init_col, deinit_col, arrange_col, attach_col, detach_col, + resize_col, get_frames_col, aux_col }; void init_layout_column() { @@ -369,3 +373,13 @@ static void resize_col(Frame *f, XRectangle *new, XPoint *pt) else drop_resize(f, new); } + +static Container *get_frames_col(Area *a) +{ + Acme *acme = a->aux; + return &acme->frames; +} + +static void aux_col(Area *a, char *aux) +{ +} diff --git a/cmd/wm/wm.h b/cmd/wm/wm.h @@ -122,8 +122,9 @@ struct Layout { void (*arrange) (Area *); /* called when area is resized */ Bool (*attach) (Area *, Client *); /* called on attach */ void (*detach) (Area *, Client *); /* called on detach */ - void (*resize) (Frame *, XRectangle *, XPoint * pt); /* called after resize */ + void (*resize) (Frame *, XRectangle *, XPoint *); /* called after resize */ Container *(*get_frames) (Area *); /* called after resize */ + void (*aux) (Area *, char *aux); /* aux interface */ }; struct Area {