commit eb05036a069c5c1835b4e8e2a712058ede54711b
parent 4b50294b0dc3823faa1c9e8b096f6b418f3741b4
Author: garbeam <garbeam@mmv.wmii.de>
Date: Wed, 14 Dec 2005 19:51:40 +0200
fixed crash in select_col if no old frame exists
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/wm/layout_column.c b/cmd/wm/layout_column.c
@@ -332,7 +332,7 @@ static void select_col(Frame *f, Bool raise)
a->file[A_SEL_FRAME]->content = f->file[F_PREFIX]->content;
if (raise)
center_pointer(f);
- if (old != f)
+ if (old && old != f)
draw_frame(old);
draw_frame(f);
}