diff options
Diffstat (limited to '')
| -rw-r--r-- | client.c | 8 | ||||
| -rw-r--r-- | event.c | 9 |
2 files changed, 1 insertions, 16 deletions
| @@ -68,14 +68,6 @@ 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 | ||
| 79 | configure(Client *c) { | 71 | configure(Client *c) { |
| 80 | XConfigureEvent ce; | 72 | XConfigureEvent ce; |
| 81 | 73 | ||
| @@ -184,16 +184,9 @@ configurerequest(XEvent *e) { | |||
| 184 | c->h = ev->height; | 184 | c->h = ev->height; |
| 185 | if((ev->value_mask & (CWX | CWY)) | 185 | if((ev->value_mask & (CWX | CWY)) |
| 186 | && !(ev->value_mask & (CWWidth | CWHeight))) | 186 | && !(ev->value_mask & (CWWidth | CWHeight))) |
| 187 | { | ||
| 188 | configure(c); | 187 | configure(c); |
| 189 | if(isvisible(c)) | 188 | if(isvisible(c)) |
| 190 | XMoveWindow(dpy, c->win, c->x, c->y); | ||
| 191 | } | ||
| 192 | else { | ||
| 193 | XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); | 189 | XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); |
| 194 | if(!isvisible(c)) | ||
| 195 | ban(c); | ||
| 196 | } | ||
| 197 | } | 190 | } |
| 198 | else | 191 | else |
| 199 | configure(c); | 192 | configure(c); |
