diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 14:57:32 +0100 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 14:57:32 +0100 |
commit | 64871a7045077bb2ec4cbcd62a74cabbe6b45096 (patch) | |
tree | 7e9d0fbab49039b32bf99924546edbe41392842e /view.c | |
parent | 2e95bc04135936ff8adc75e57e21f5edab56e0d6 (diff) | |
download | dwm-64871a7045077bb2ec4cbcd62a74cabbe6b45096.tar.gz dwm-64871a7045077bb2ec4cbcd62a74cabbe6b45096.zip |
renamed manage.c to view.c
Diffstat (limited to '')
-rw-r--r-- | view.c (renamed from manage.c) | 74 |
1 files changed, 0 insertions, 74 deletions
@@ -59,20 +59,6 @@ togglemax(Client *c) { /* extern */ void -attach(Client *c) { - if(clients) - clients->prev = c; - c->next = clients; - clients = c; -} - -void -attachstack(Client *c) { - c->snext = stack; - stack = c; -} - -void compileregexps(void) { unsigned int i; regex_t *reg; @@ -100,24 +86,6 @@ compileregexps(void) { } void -detach(Client *c) { - if(c->prev) - c->prev->next = c->next; - if(c->next) - c->next->prev = c->prev; - if(c == clients) - clients = c->next; - c->next = c->prev = NULL; -} - -void -detachstack(Client *c) { - Client **tc; - for(tc=&stack; *tc && *tc != c; tc=&(*tc)->snext); - *tc = c->snext; -} - -void dofloat(void) { Client *c; @@ -192,48 +160,6 @@ dotile(void) { } void -focusnext(Arg *arg) { - Client *c; - - if(!sel) - return; - for(c = sel->next; c && !isvisible(c); c = c->next); - if(!c) - for(c = clients; c && !isvisible(c); c = c->next); - if(c) { - focus(c); - restack(); - } -} - -void -focusprev(Arg *arg) { - Client *c; - - if(!sel) - return; - for(c = sel->prev; c && !isvisible(c); c = c->prev); - if(!c) { - for(c = clients; c && c->next; c = c->next); - for(; c && !isvisible(c); c = c->prev); - } - if(c) { - focus(c); - restack(); - } -} - -Client * -getclient(Window w) { - Client *c; - - for(c = clients; c; c = c->next) - if(c->win == w) - return c; - return NULL; -} - -void incnmaster(Arg *arg) { if((arrange == dofloat) || (nmaster + arg->i < 1) || (wah / (nmaster + arg->i) <= 2 * BORDERPX)) |