summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/client.c b/client.c
index 9a30526..e7a3864 100644
--- a/client.c
+++ b/client.c
@@ -61,20 +61,6 @@ xerrordummy(Display *dsply, XErrorEvent *ee) {
61/* extern */ 61/* extern */
62 62
63void 63void
64attach(Client *c) {
65 if(clients)
66 clients->prev = c;
67 c->next = clients;
68 clients = c;
69}
70
71void
72attachstack(Client *c) {
73 c->snext = stack;
74 stack = c;
75}
76
77void
78configure(Client *c) { 64configure(Client *c) {
79 XConfigureEvent ce; 65 XConfigureEvent ce;
80 66
@@ -93,24 +79,6 @@ configure(Client *c) {
93} 79}
94 80
95void 81void
96detach(Client *c) {
97 if(c->prev)
98 c->prev->next = c->next;
99 if(c->next)
100 c->next->prev = c->prev;
101 if(c == clients)
102 clients = c->next;
103 c->next = c->prev = NULL;
104}
105
106void
107detachstack(Client *c) {
108 Client **tc;
109 for(tc=&stack; *tc && *tc != c; tc=&(*tc)->snext);
110 *tc = c->snext;
111}
112
113void
114focus(Client *c) { 82focus(Client *c) {
115 if(c && !isvisible(c)) 83 if(c && !isvisible(c))
116 return; 84 return;
@@ -135,16 +103,6 @@ focus(Client *c) {
135 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); 103 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
136} 104}
137 105
138Client *
139getclient(Window w) {
140 Client *c;
141
142 for(c = clients; c; c = c->next)
143 if(c->win == w)
144 return c;
145 return NULL;
146}
147
148Bool 106Bool
149isprotodel(Client *c) { 107isprotodel(Client *c) {
150 int i, n; 108 int i, n;