[hackers] [wmii] Don't restack when there are no clients.

From: Kris Maglione <jg_AT_suckless.org>
Date: Mon Mar 12 18:58:15 2007

changeset: 2011:437709f0e40e
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Mar 12 13:53:28 2007 -0400
summary: Don't restack when there are no clients.

diff -r 28dedb0cf6eb -r 437709f0e40e view.c
--- a/view.c Wed Mar 07 17:35:20 2007 -0500
+++ b/view.c Mon Mar 12 13:53:28 2007 -0400
@@ -176,6 +176,8 @@ restack_view(View *v) {
 
         for(c=client; c; c=c->next)
                 i++;
+ if(i == 0)
+ return;
         if(i >= winssz) {
                 winssz = 2 * i;
                 wins = erealloc(wins, sizeof(Window) * winssz);
Received on Mon Mar 12 2007 - 18:58:15 UTC

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