Fix flags setting at reload

This commit is contained in:
Martin Duquesnoy 2011-11-08 12:29:55 +01:00
parent 8d53488e9a
commit 1616aa4e77
2 changed files with 4 additions and 4 deletions

View File

@ -575,9 +575,7 @@ client_apply_rule(struct client *c)
if(flags & RROLE || flags & RNAME)
{
c->screen = screen_gb_id(r->screen);
c->tag = tag_gb_id(c->screen, r->tag);
c->theme = r->theme;
if(r->flags & RULE_FREE)
@ -641,6 +639,8 @@ client_new(Window w, XWindowAttributes *wa, bool scan)
if(!scan)
tag_client((c->flags & CLIENT_RULED ? c->tag : c->screen->seltag), c);
printf("-> %d\n", c->flags & CLIENT_RULED);
/* X window attributes */
XSelectInput(W->dpy, w, EnterWindowMask | LeaveWindowMask | StructureNotifyMask | PropertyChangeMask);
XSetWindowBorderWidth(W->dpy, w, 0);

View File

@ -260,7 +260,7 @@ wmfs_scan(void)
c = client_new(w[i], &wa, true);
if(flags != -1)
c->flags = flags;
c->flags |= flags;
if(tag != -1 && screen != -1)
{