summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-03-04 18:13:07 +0000
committerAnselm R Garbe <garbeam@gmail.com>2008-03-04 18:13:07 +0000
commita82cba275981ecd85e68cc68b169c89f79fa60db (patch)
treeef364f46102c3a952cd57faff38e16a38ea42796 /dwm.c
parentf7c097e8029c7d0dc00db52fc04a2b8192fc2bc9 (diff)
fixed applyrules bug
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 018f929..897eeb4 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1002,8 +1002,6 @@ manage(Window w, XWindowAttributes *wa) {
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 @@ manage(Window w, XWindowAttributes *wa) {
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);