Question

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?

Was it helpful?

Solution

You should try:

client.focus = c
c:raise()

c is the client which you want to focus.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top