diff options
Diffstat (limited to '')
| -rw-r--r-- | client.c | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -68,6 +68,14 @@ xerrordummy(Display *dsply, XErrorEvent *ee) { | |||
| 68 | /* extern */ | 68 | /* extern */ |
| 69 | 69 | ||
| 70 | void | 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 | } | ||
| 77 | |||
| 78 | void | ||
| 71 | configure(Client *c) { | 79 | configure(Client *c) { |
| 72 | XConfigureEvent ce; | 80 | XConfigureEvent ce; |
| 73 | 81 | ||
| @@ -190,7 +198,7 @@ manage(Window w, XWindowAttributes *wa) { | |||
| 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)) |
