diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 13:53:40 +0100 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 13:53:40 +0100 |
commit | b3d7e07f18f0f69f8c3b3542615da62dfc4c6175 (patch) | |
tree | 55ef91ea3249738001b2f60aa80fb8d68af32862 /client.c | |
parent | 30af19d4426ca32dc38318bbe87534cc44484998 (diff) | |
download | dwm-b3d7e07f18f0f69f8c3b3542615da62dfc4c6175.tar dwm-b3d7e07f18f0f69f8c3b3542615da62dfc4c6175.tar.gz dwm-b3d7e07f18f0f69f8c3b3542615da62dfc4c6175.tar.bz2 |
some more refactoring
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 42 |
1 files changed, 0 insertions, 42 deletions
@@ -61,20 +61,6 @@ xerrordummy(Display *dsply, XErrorEvent *ee) { /* 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 configure(Client *c) { XConfigureEvent ce; @@ -93,24 +79,6 @@ configure(Client *c) { } 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 focus(Client *c) { if(c && !isvisible(c)) return; @@ -135,16 +103,6 @@ focus(Client *c) { XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); } -Client * -getclient(Window w) { - Client *c; - - for(c = clients; c; c = c->next) - if(c->win == w) - return c; - return NULL; -} - Bool isprotodel(Client *c) { int i, n; |