I'm writing an extension that talks withto an outside process, so it is a given to lower the amount of 'hey whats up'- requests when my buffer isn't focused.
So, what is the best way to recognize:
- When my buffer is visible and focused
- When my buffer is visible but not focused
- When my buffer is neither visible nor focused