fixed view-change bug reported on the list
3d73084b
1 file(s) · +10 −14
| 57 | 57 | else |
|
| 58 | 58 | ban(c); |
|
| 59 | 59 | } |
|
| 60 | - | if(sel && !sel->tags[tsel]) { |
|
| 61 | - | if((sel = getnext(clients))) { |
|
| 62 | - | higher(sel); |
|
| 63 | - | focus(sel); |
|
| 64 | - | } |
|
| 65 | - | else |
|
| 66 | - | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
|
| 60 | + | if((sel = getnext(clients))) { |
|
| 61 | + | higher(sel); |
|
| 62 | + | focus(sel); |
|
| 67 | 63 | } |
|
| 64 | + | else |
|
| 65 | + | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
|
| 68 | 66 | drawall(); |
|
| 69 | 67 | } |
|
| 70 | 68 | ||
| 122 | 120 | else |
|
| 123 | 121 | ban(c); |
|
| 124 | 122 | } |
|
| 125 | - | if(!sel || (sel && !sel->tags[tsel])) { |
|
| 126 | - | if((sel = getnext(clients))) { |
|
| 127 | - | higher(sel); |
|
| 128 | - | focus(sel); |
|
| 129 | - | } |
|
| 130 | - | else |
|
| 131 | - | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
|
| 123 | + | if((sel = getnext(clients))) { |
|
| 124 | + | higher(sel); |
|
| 125 | + | focus(sel); |
|
| 132 | 126 | } |
|
| 127 | + | else |
|
| 128 | + | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
|
| 133 | 129 | drawall(); |
|
| 134 | 130 | } |
|
| 135 | 131 | ||