reducing focus calls (sanders patch)
d39d0005
1 file(s) · +4 −6
| 68 | 68 | else |
|
| 69 | 69 | ban(c); |
|
| 70 | 70 | } |
|
| 71 | - | if(!(fc = sel) || !isvisible(fc)) |
|
| 72 | - | fc = getnext(clients); |
|
| 73 | - | focus(fc); |
|
| 71 | + | if(!sel || !isvisible(sel)) |
|
| 72 | + | focus(getnext(clients)); |
|
| 74 | 73 | restack(); |
|
| 75 | 74 | } |
|
| 76 | 75 | ||
| 131 | 130 | else |
|
| 132 | 131 | ban(c); |
|
| 133 | 132 | } |
|
| 134 | - | if(!(fc = sel) || !isvisible(fc)) |
|
| 135 | - | fc = getnext(clients); |
|
| 136 | - | focus(fc); |
|
| 133 | + | if(!sel || !isvisible(sel)) |
|
| 134 | + | focus(getnext(clients)); |
|
| 137 | 135 | restack(); |
|
| 138 | 136 | } |
|
| 139 | 137 | ||