문제

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:

client.focus = c
c:raise()

c is the client which you want to focus.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top