[hackers] [wmii] Don't 'segfault randomly at resizing windows'.

From: Kris Maglione <jg_AT_suckless.org>
Date: Sun Apr 15 23:16:03 2007

changeset: 2075:a94a422efc95
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Apr 15 14:05:26 2007 -0400
summary: Don't 'segfault randomly at resizing windows'.

diff -r a6624d17ef24 -r a94a422efc95 cmd/wmii/column.c
--- a/cmd/wmii/column.c Sat Apr 14 08:06:23 2007 -0400
+++ b/cmd/wmii/column.c Sun Apr 15 14:05:26 2007 -0400
@@ -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);
         }
Received on Sun Apr 15 2007 - 23:16:03 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:39 UTC