i = arg ? atoi(arg) : 0;
if(i >= 0 && i < ntags)
sel->tags[i] = True;
- if(sel)
- persistconfig(sel);
+ persistconfig(sel);
arrange();
}
if(!sel || isfloating())
return;
sel->isfloating = !sel->isfloating;
- if(sel->isfloating)
+ if(sel->isfloating) {
resize(sel, sel->x, sel->y, sel->w, sel->h, True);
+ persistconfig(sel);
+ }
arrange();
}
for(j = 0; j < ntags && !sel->tags[j]; j++);
if(j == ntags)
sel->tags[i] = True;
- if(sel)
- persistconfig(sel);
+ persistconfig(sel);
arrange();
}