wmii

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

commit 3b33e2394260176c6089ad208a5c1ded633f2871
parent a197963ea92b81ad71854e36bda91053bf57400f
Author: garbeam <garbeam@localhost>
Date:   Wed,  4 Jan 2006 17:55:11 +0200

fixed colorization on column change


Diffstat:
cmd/wm/layout_column.c | 15++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/cmd/wm/layout_column.c b/cmd/wm/layout_column.c @@ -421,18 +421,19 @@ focus_col(Frame * f, Bool raise) { Area *a = f->area; Acme *acme = a->aux; - Cell *old, *cell = f->aux; - Column *col = cell->col; + Frame *old = sel_col(a); + Cell *cell = f->aux; - old = col->sel; - acme->sel = col; - col->sel = cell; + if(old == f) + return; + + acme->sel = cell->col; + cell->col->sel = cell; focus_client(f->sel); a->file[A_SEL_FRAME]->content = f->file[F_PREFIX]->content; if(raise) center_pointer(f); - if(old && old != cell) - draw_frame(old->frame); + draw_frame(old); draw_frame(f); }