From 8abfb9d66d18ae5f2683458bee8a05643c019ed5 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 15 Apr 2007 14:05:26 -0400 Subject: [PATCH] Don't 'segfault randomly at resizing windows'. --- cmd/wmii/column.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/wmii/column.c b/cmd/wmii/column.c index 527797e0..767326b2 100644 --- a/cmd/wmii/column.c +++ b/cmd/wmii/column.c @@ -454,11 +454,11 @@ resize_colframe(Frame *f, XRectangle *r) { dx = a->rect.x - r->x; dw = maxx - r_east(&a->rect); - if(dx) { + if(al) { al->rect.width -= dx; arrange_column(al, False); } - if(dw) { + if(ar) { ar->rect.width -= dw; arrange_column(ar, False); }