equal
deleted
inserted
replaced
64 xerrordummy(Display *dsply, XErrorEvent *ee) { |
64 xerrordummy(Display *dsply, XErrorEvent *ee) { |
65 return 0; |
65 return 0; |
66 } |
66 } |
67 |
67 |
68 /* extern */ |
68 /* extern */ |
|
69 |
|
70 void |
|
71 ban(Client *c) { |
|
72 if(!c || c->isbanned) |
|
73 return; |
|
74 c->isbanned = True; |
|
75 XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); |
|
76 } |
69 |
77 |
70 void |
78 void |
71 configure(Client *c) { |
79 configure(Client *c) { |
72 XConfigureEvent ce; |
80 XConfigureEvent ce; |
73 |
81 |
188 if(clients) |
196 if(clients) |
189 clients->prev = c; |
197 clients->prev = c; |
190 c->next = clients; |
198 c->next = clients; |
191 c->snext = stack; |
199 c->snext = stack; |
192 stack = clients = c; |
200 stack = clients = c; |
193 XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); |
201 ban(c); |
194 XMapWindow(dpy, c->win); |
202 XMapWindow(dpy, c->win); |
195 setclientstate(c, NormalState); |
203 setclientstate(c, NormalState); |
196 if(isvisible(c)) |
204 if(isvisible(c)) |
197 focus(c); |
205 focus(c); |
198 arrange(); |
206 arrange(); |