selmon optimisation is needed
a88e0373
1 file(s) · +0 −4
| 815 | 815 | focus(Client *c) { |
|
| 816 | 816 | if(!c || !ISVISIBLE(c)) |
|
| 817 | 817 | for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext); |
|
| 818 | - | if(c && c == selmon->sel) { |
|
| 819 | - | D fprintf(stderr, "focus, optimising focus away\n"); |
|
| 820 | - | return; |
|
| 821 | - | } |
|
| 822 | 818 | if(selmon->sel) |
|
| 823 | 819 | unfocus(selmon->sel); |
|
| 824 | 820 | if(c) { |