[hackers] [dwm] hotfix || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Tue, 30 Jun 2009 18:45:30 +0000 (UTC)

changeset: 1431:5b2240f2d21f
tag: tip
user: Anselm R Garbe <anselm_AT_garbe.us>
date: Tue Jun 30 19:45:25 2009 +0100
files: dwm.c
description:
hotfix

diff -r c4b9f97e4bd7 -r 5b2240f2d21f dwm.c
--- a/dwm.c Tue Jun 30 19:39:59 2009 +0100
+++ b/dwm.c Tue Jun 30 19:45:25 2009 +0100
@@ -600,14 +600,14 @@
 
 void
 detachstack(Client *c) {
- Client **tc;
+ Client **tc, *t;
 
         for(tc = &c->mon->stack; *tc && *tc != c; tc = &(*tc)->snext);
         *tc = c->snext;
 
         if(c == c->mon->sel) {
- for(*tc = c->mon->stack; *tc && !ISVISIBLE((*tc)); *tc = (*tc)->snext);
- c->mon->sel = *tc;
+ for(t = c->mon->stack; t && !ISVISIBLE(t); t = t->snext);
+ c->mon->sel = t;
         }
 }
 
Received on Tue Jun 30 2009 - 18:45:30 UTC

This archive was generated by hypermail 2.2.0 : Tue Jun 30 2009 - 18:48:06 UTC