made Layout a static struct in layout.c, added some convenience getters in layout.c, now lt->arrange accesses are not possible anymore, arrange() is the super-arrange function which sets up all layouts
This commit is contained in:
parent
2feb3afe78
commit
77044e8765
8 changed files with 62 additions and 42 deletions
8
tag.c
8
tag.c
|
@ -110,7 +110,7 @@ tag(const char *arg) {
|
|||
i = arg ? atoi(arg) : 0;
|
||||
if(i >= 0 && i < ntags)
|
||||
sel->tags[i] = True;
|
||||
lt->arrange();
|
||||
arrange();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -124,7 +124,7 @@ toggletag(const char *arg) {
|
|||
for(j = 0; j < ntags && !sel->tags[j]; j++);
|
||||
if(j == ntags)
|
||||
sel->tags[i] = True;
|
||||
lt->arrange();
|
||||
arrange();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -136,7 +136,7 @@ toggleview(const char *arg) {
|
|||
for(j = 0; j < ntags && !seltag[j]; j++);
|
||||
if(j == ntags)
|
||||
seltag[i] = True; /* cannot toggle last view */
|
||||
lt->arrange();
|
||||
arrange();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -148,5 +148,5 @@ view(const char *arg) {
|
|||
i = arg ? atoi(arg) : 0;
|
||||
if(i >= 0 && i < ntags)
|
||||
seltag[i] = True;
|
||||
lt->arrange();
|
||||
arrange();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue