diff options
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 15 |
1 files changed, 11 insertions, 4 deletions
| @@ -18,6 +18,15 @@ minclient() | |||
| 18 | return min; | 18 | return min; |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | static void | ||
| 22 | pop(Client *c) | ||
| 23 | { | ||
| 24 | detach(c); | ||
| 25 | if(clients) | ||
| 26 | clients->prev = c; | ||
| 27 | c->next = clients; | ||
| 28 | clients = c; | ||
| 29 | } | ||
| 21 | 30 | ||
| 22 | static void | 31 | static void |
| 23 | reorder() | 32 | reorder() |
| @@ -223,6 +232,7 @@ restack() | |||
| 223 | return; | 232 | return; |
| 224 | } | 233 | } |
| 225 | if(sel->isfloat || arrange == dofloat) { | 234 | if(sel->isfloat || arrange == dofloat) { |
| 235 | pop(sel); | ||
| 226 | XRaiseWindow(dpy, sel->win); | 236 | XRaiseWindow(dpy, sel->win); |
| 227 | XRaiseWindow(dpy, sel->twin); | 237 | XRaiseWindow(dpy, sel->twin); |
| 228 | } | 238 | } |
| @@ -297,10 +307,7 @@ zoom(Arg *arg) | |||
| 297 | if((c = sel) == nexttiled(clients)) | 307 | if((c = sel) == nexttiled(clients)) |
| 298 | if(!(c = nexttiled(c->next))) | 308 | if(!(c = nexttiled(c->next))) |
| 299 | return; | 309 | return; |
| 300 | detach(c); | 310 | pop(c); |
| 301 | c->next = clients; | ||
| 302 | clients->prev = c; | ||
| 303 | clients = c; | ||
| 304 | focus(c); | 311 | focus(c); |
| 305 | arrange(NULL); | 312 | arrange(NULL); |
| 306 | } | 313 | } |
