diff options
Diffstat (limited to 'client.c')
| -rw-r--r-- | client.c | 14 |
1 files changed, 2 insertions, 12 deletions
| @@ -297,16 +297,6 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) { | |||
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | void | 299 | void |
| 300 | togglefloating(const char *arg) { | ||
| 301 | if(!sel || isfloating()) | ||
| 302 | return; | ||
| 303 | sel->isfloating = !sel->isfloating; | ||
| 304 | if(sel->isfloating) | ||
| 305 | resize(sel, sel->x, sel->y, sel->w, sel->h, True); | ||
| 306 | arrange(); | ||
| 307 | } | ||
| 308 | |||
| 309 | void | ||
| 310 | unban(Client *c) { | 300 | unban(Client *c) { |
| 311 | if(!c->isbanned) | 301 | if(!c->isbanned) |
| 312 | return; | 302 | return; |
| @@ -316,7 +306,7 @@ unban(Client *c) { | |||
| 316 | } | 306 | } |
| 317 | 307 | ||
| 318 | void | 308 | void |
| 319 | unmanage(Client *c) { | 309 | unmanage(Client *c, long state) { |
| 320 | XWindowChanges wc; | 310 | XWindowChanges wc; |
| 321 | 311 | ||
| 322 | wc.border_width = c->oldborder; | 312 | wc.border_width = c->oldborder; |
| @@ -329,7 +319,7 @@ unmanage(Client *c) { | |||
| 329 | if(sel == c) | 319 | if(sel == c) |
| 330 | focus(NULL); | 320 | focus(NULL); |
| 331 | XUngrabButton(dpy, AnyButton, AnyModifier, c->win); | 321 | XUngrabButton(dpy, AnyButton, AnyModifier, c->win); |
| 332 | setclientstate(c, WithdrawnState); | 322 | setclientstate(c, state); |
| 333 | free(c->tags); | 323 | free(c->tags); |
| 334 | free(c); | 324 | free(c); |
| 335 | XSync(dpy, False); | 325 | XSync(dpy, False); |
