wmii

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

commit 98e6c4cc50f3f8051e48c7111cea308916e0587d
parent e67dfd1201d466b6ec6bee128b1398d306da8eb0
Author: salva <salva@firulillo.hopto.org>
Date:   Wed, 28 Jun 2006 01:45:31 +0000

corrected calculation of result, to fix segfault with floating clients


Diffstat:
cmd/wm/view.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/wm/view.c b/cmd/wm/view.c @@ -268,7 +268,7 @@ sel_client_of_view(View *v) { XRectangle * rects_of_view(View *v, unsigned int *num) { - XRectangle *result = nil; + XRectangle *result; Frame *f; *num = 2; @@ -280,7 +280,7 @@ rects_of_view(View *v, unsigned int *num) *result++ = rect; *result++ = brect; - return &result[-*num]; + return result - *num; } /* XXX: This will need cleanup */