I have instance of the client which should be focused. I found only following ways to give focus to client:
- focus.bydirection (dir, c) – Focus a client by the given direction.
- focus.byidx (i, c) – Focus a client by its relative index.
- focus.filter (c) – Filter out window that we do not want handled by
- focus. focus.history.add (c) – Update client focus history.
- focus.history.delete (c) – Remove a client from the focus history.
- focus.history.get (screen, idx) – Get the latest focused client for a
- screen in history. focus.history.previous () – Focus the previous client in history.
But how to focus a client if I already have an instance?
You should try:
cis the client which you want to focus.