no this is better
a33150eb
2 file(s) · +11 −11
| 99 | 99 | } |
|
| 100 | 100 | } |
|
| 101 | 101 | if(c) { |
|
| 102 | - | if(c->isfloat || arrange == dofloat) { |
|
| 103 | - | detach(c); |
|
| 104 | - | if(clients) |
|
| 105 | - | clients->prev = c; |
|
| 106 | - | c->next = clients; |
|
| 107 | - | clients = c; |
|
| 108 | - | } |
|
| 109 | 102 | grabbuttons(c, True); |
|
| 110 | 103 | drawtitle(c); |
|
| 111 | 104 | XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
| 18 | 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 | 31 | static void |
|
| 23 | 32 | reorder() |
|
| 223 | 232 | return; |
|
| 224 | 233 | } |
|
| 225 | 234 | if(sel->isfloat || arrange == dofloat) { |
|
| 235 | + | pop(sel); |
|
| 226 | 236 | XRaiseWindow(dpy, sel->win); |
|
| 227 | 237 | XRaiseWindow(dpy, sel->twin); |
|
| 228 | 238 | } |
|
| 297 | 307 | if((c = sel) == nexttiled(clients)) |
|
| 298 | 308 | if(!(c = nexttiled(c->next))) |
|
| 299 | 309 | return; |
|
| 300 | - | detach(c); |
|
| 301 | - | c->next = clients; |
|
| 302 | - | clients->prev = c; |
|
| 303 | - | clients = c; |
|
| 310 | + | pop(c); |
|
| 304 | 311 | focus(c); |
|
| 305 | 312 | arrange(NULL); |
|
| 306 | 313 | } |
|