fixed applyrules bug
This commit is contained in:
parent
f7c097e802
commit
a82cba2759
1 changed files with 2 additions and 2 deletions
4
dwm.c
4
dwm.c
|
@ -1002,8 +1002,6 @@ manage(Window w, XWindowAttributes *wa) {
|
||||||
c->tags = emallocz(TAGSZ);
|
c->tags = emallocz(TAGSZ);
|
||||||
c->win = w;
|
c->win = w;
|
||||||
|
|
||||||
applyrules(c);
|
|
||||||
|
|
||||||
c->x = wa->x + sx;
|
c->x = wa->x + sx;
|
||||||
c->y = wa->y + sy;
|
c->y = wa->y + sy;
|
||||||
c->w = wa->width;
|
c->w = wa->width;
|
||||||
|
@ -1038,6 +1036,8 @@ manage(Window w, XWindowAttributes *wa) {
|
||||||
for(t = clients; t && t->win != trans; t = t->next);
|
for(t = clients; t && t->win != trans; t = t->next);
|
||||||
if(t)
|
if(t)
|
||||||
memcpy(c->tags, t->tags, TAGSZ);
|
memcpy(c->tags, t->tags, TAGSZ);
|
||||||
|
else
|
||||||
|
applyrules(c);
|
||||||
if(!c->isfloating)
|
if(!c->isfloating)
|
||||||
c->isfloating = (rettrans == Success) || c->isfixed;
|
c->isfloating = (rettrans == Success) || c->isfixed;
|
||||||
attach(c);
|
attach(c);
|
||||||
|
|
Loading…
Reference in a new issue