summaryrefslogtreecommitdiff
path: root/tile.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-08-13 19:13:54 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-08-13 19:13:54 +0200
commit77044e876511f51c34bde379d89e2de754707ee6 (patch)
tree6626665e0d57068c2d6ddbb3669534f2afb4e159 /tile.c
parent2feb3afe784cbd9d900bd70aad91431a4b25f2ab (diff)
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
Diffstat (limited to 'tile.c')
-rw-r--r--tile.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/tile.c b/tile.c
index 2481eb3..d03e4fa 100644
--- a/tile.c
+++ b/tile.c
@@ -12,7 +12,7 @@ void
addtomwfact(const char *arg) {
double delta;
- if(lt->arrange != tile)
+ if(isarrange(tile))
return;
/* arg handling, manipulate mwfact */
@@ -20,7 +20,7 @@ addtomwfact(const char *arg) {
if(delta + mwfact > 0.1 && delta + mwfact < 0.9)
mwfact += delta;
}
- lt->arrange();
+ arrange();
}
void
@@ -41,7 +41,6 @@ tile(void) {
ny = way;
for(i = 0, c = clients; c; c = c->next)
if(isvisible(c)) {
- unban(c);
if(c->isfloating)
continue;
c->ismax = False;
@@ -65,17 +64,13 @@ tile(void) {
ny += nh + 2 * c->border;
i++;
}
- else
- ban(c);
- focus(NULL);
- restack();
}
void
zoom(const char *arg) {
Client *c;
- if(!sel || lt->arrange == floating || sel->isfloating)
+ if(!sel || !isarrange(tile) || sel->isfloating)
return;
if((c = sel) == nexttiled(clients))
if(!(c = nexttiled(c->next)))
@@ -83,5 +78,5 @@ zoom(const char *arg) {
detach(c);
attach(c);
focus(c);
- lt->arrange();
+ arrange();
}