소스 검색

fixed applyrules bug

Anselm R Garbe 17 년 전
부모
커밋
a82cba2759
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      dwm.c

+ 2 - 2
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);