focus() enforces visibility of a client if not NULL
8e37c78c
1 file(s) · +1 −1
| 84 | 84 | focus(Client *c) { |
|
| 85 | 85 | Client *old; |
|
| 86 | 86 | ||
| 87 | - | if(!issel) |
|
| 87 | + | if(!issel || (c && !isvisible(c))) |
|
| 88 | 88 | return; |
|
| 89 | 89 | if(!sel) |
|
| 90 | 90 | sel = c; |