diff options
Diffstat (limited to '')
| -rw-r--r-- | layout.c | 15 |
1 files changed, 4 insertions, 11 deletions
| @@ -61,10 +61,8 @@ tile(void) { | |||
| 61 | c->isbanned = True; | 61 | c->isbanned = True; |
| 62 | XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); | 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 | focustopvisible(); |
| 66 | focus(c); | ||
| 67 | } | ||
| 68 | restack(); | 66 | restack(); |
| 69 | } | 67 | } |
| 70 | 68 | ||
| @@ -88,10 +86,8 @@ floating(void) { | |||
| 88 | XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); | 86 | XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); |
| 89 | } | 87 | } |
| 90 | } | 88 | } |
| 91 | if(!sel || !isvisible(sel)) { | 89 | if(!sel || !isvisible(sel)) |
| 92 | for(c = stack; c && !isvisible(c); c = c->snext); | 90 | focustopvisible(); |
| 93 | focus(c); | ||
| 94 | } | ||
| 95 | restack(); | 91 | restack(); |
| 96 | } | 92 | } |
| 97 | 93 | ||
| @@ -241,13 +237,10 @@ togglemax(const char *arg) { | |||
| 241 | 237 | ||
| 242 | void | 238 | void |
| 243 | zoom(const char *arg) { | 239 | zoom(const char *arg) { |
| 244 | unsigned int n; | ||
| 245 | Client *c; | 240 | Client *c; |
| 246 | 241 | ||
| 247 | if(!sel || lt->arrange != tile || sel->isfloating) | 242 | if(!sel || lt->arrange != tile || sel->isfloating) |
| 248 | return; | 243 | return; |
| 249 | for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) | ||
| 250 | n++; | ||
| 251 | if((c = sel) == nexttiled(clients)) | 244 | if((c = sel) == nexttiled(clients)) |
| 252 | if(!(c = nexttiled(c->next))) | 245 | if(!(c = nexttiled(c->next))) |
| 253 | return; | 246 | return; |
