diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-08-31 08:48:04 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-08-31 08:48:04 +0200 |
| commit | 4c368bcd24172166aab32948fc63feaa6a1bec93 (patch) | |
| tree | dddc175fd0f072d6b7ea09a9b91cbcdf8f9f64d6 /view.c | |
| parent | small fix in config.arg.h (diff) | |
| download | dwm-4c368bcd24172166aab32948fc63feaa6a1bec93.tar.gz dwm-4c368bcd24172166aab32948fc63feaa6a1bec93.zip | |
applied sanders patch to remove unnecessary commit()
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -67,7 +67,9 @@ dofloat(Arg *arg) | |||
| 67 | else | 67 | else |
| 68 | ban(c); | 68 | ban(c); |
| 69 | } | 69 | } |
| 70 | if((sel = getnext(clients))) | 70 | if(!sel || !isvisible(sel)) |
| 71 | sel = getnext(clients); | ||
| 72 | if(sel) | ||
| 71 | focus(sel); | 73 | focus(sel); |
| 72 | else | 74 | else |
| 73 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | 75 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
| @@ -130,7 +132,9 @@ dotile(Arg *arg) | |||
| 130 | else | 132 | else |
| 131 | ban(c); | 133 | ban(c); |
| 132 | } | 134 | } |
| 133 | if((sel = getnext(clients))) | 135 | if(!sel || !isvisible(sel)) |
| 136 | sel = getnext(clients); | ||
| 137 | if(sel) | ||
| 134 | focus(sel); | 138 | focus(sel); |
| 135 | else | 139 | else |
| 136 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | 140 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
