# HG changeset patch # User Anselm R Garbe # Date 1204654387 0 # Node ID 61f7a3e134e9de01280e60df0a85514f2f1c8a0f # Parent 31b3935773cb7ec39cecda882f5382103c339afe fixed applyrules bug diff -r 31b3935773cb -r 61f7a3e134e9 dwm.c --- a/dwm.c Mon Mar 03 21:40:37 2008 +0000 +++ b/dwm.c Tue Mar 04 18:13:07 2008 +0000 @@ -1002,8 +1002,6 @@ c->tags = emallocz(TAGSZ); c->win = w; - applyrules(c); - c->x = wa->x + sx; c->y = wa->y + sy; c->w = wa->width; @@ -1038,6 +1036,8 @@ for(t = clients; t && t->win != trans; t = t->next); if(t) memcpy(c->tags, t->tags, TAGSZ); + else + applyrules(c); if(!c->isfloating) c->isfloating = (rettrans == Success) || c->isfixed; attach(c);