PreviousNext
Help > 49. Focus
49. Focus

<focus>

  <focusNew>yes</focusNew>

  <focusLast>yes</focusLast>

  <followMouse>no</followMouse>

  <focusDelay>200</focusDelay>

  <underMouse>no</underMouse>

  <raiseOnFocus>no</raiseOnFocus>

</focus>

focusNew Openbox will automatically give focus to new windows when they are created, otherwise the focus will stay as it is.
followMouse Makes focus follow mouse
. e.g. when the mouse is being moved the focus will be given to window under the mouse cursor.
focusLast When switching desktops
, focus the last focused window on that desktop again, regardless of where the mouse is. Only applies followMouse is set.
focusDelay The time
(in milliseconds) Openbox will wait before giving focus to the window under mouse cursor. Only applies if followMouse is set.
underMouse Focus windows under the mouse not only when the mouse moves
, but also when it enters another window due to other reasons (e.g. the window the mouse was in moved/closed/iconified etc). Only applies if followMouse is set.
raiseOnFocus Also raises windows to top when they are focused
. Only applies if followMouse is set.