diff options
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 14 |
1 files changed, 4 insertions, 10 deletions
| @@ -59,7 +59,7 @@ dofloat(void) { | |||
| 59 | resize(c, True, TopLeft); | 59 | resize(c, True, TopLeft); |
| 60 | } | 60 | } |
| 61 | else | 61 | else |
| 62 | ban(c); | 62 | XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); |
| 63 | } | 63 | } |
| 64 | if(!sel || !isvisible(sel)) { | 64 | if(!sel || !isvisible(sel)) { |
| 65 | for(c = stack; c && !isvisible(c); c = c->snext); | 65 | for(c = stack; c && !isvisible(c); c = c->snext); |
| @@ -109,8 +109,7 @@ dotile(void) { | |||
| 109 | i++; | 109 | i++; |
| 110 | } | 110 | } |
| 111 | else | 111 | else |
| 112 | ban(c); | 112 | XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); |
| 113 | |||
| 114 | if(!sel || !isvisible(sel)) { | 113 | if(!sel || !isvisible(sel)) { |
| 115 | for(c = stack; c && !isvisible(c); c = c->snext); | 114 | for(c = stack; c && !isvisible(c); c = c->snext); |
| 116 | focus(c); | 115 | focus(c); |
| @@ -191,19 +190,14 @@ restack(void) { | |||
| 191 | drawstatus(); | 190 | drawstatus(); |
| 192 | return; | 191 | return; |
| 193 | } | 192 | } |
| 194 | if(sel->isfloat || arrange == dofloat) { | 193 | if(sel->isfloat || arrange == dofloat) |
| 195 | XRaiseWindow(dpy, sel->win); | 194 | XRaiseWindow(dpy, sel->win); |
| 196 | XRaiseWindow(dpy, sel->twin); | ||
| 197 | } | ||
| 198 | if(arrange != dofloat) { | 195 | if(arrange != dofloat) { |
| 199 | if(!sel->isfloat) { | 196 | if(!sel->isfloat) |
| 200 | XLowerWindow(dpy, sel->twin); | ||
| 201 | XLowerWindow(dpy, sel->win); | 197 | XLowerWindow(dpy, sel->win); |
| 202 | } | ||
| 203 | for(c = nexttiled(clients); c; c = nexttiled(c->next)) { | 198 | for(c = nexttiled(clients); c; c = nexttiled(c->next)) { |
| 204 | if(c == sel) | 199 | if(c == sel) |
| 205 | continue; | 200 | continue; |
| 206 | XLowerWindow(dpy, c->twin); | ||
| 207 | XLowerWindow(dpy, c->win); | 201 | XLowerWindow(dpy, c->win); |
| 208 | } | 202 | } |
| 209 | } | 203 | } |
