[openbox] Exceptions to focusing new windows

Xyne xyne at archlinux.ca
Sun Aug 18 17:50:48 EDT 2013

On 2013-08-18 16:35 -0400
Dana Jansens wrote:

>I've been trying to think what else we might do to solve this, what I came
>up with at the moment is if we added more bindings to the rc.xml. We had a
>branch with "hooks" on it to run actions when various events occured in the
>WM, but it was really easy to cause infinite loops by causing an action
>which triggered the hook again.. so it didn't go anywhere yet.
>If we had a "new window" hook, with the default action being "focus", then
>you could replace that with an if action. It would make the <focusnew>
>option a lot more general.
>The only threat here would be an execute action that made another new
>window, of course. But, sometimes on does want to shoot oneself in the foot.

That would indeed be useful. Aside from focusing, it could be used to manage
layouts with tilers such as pytile or conditionally send applications to
different screens and desktops. It could even be used to prevent multiple
instances of an application from starting.

More information about the openbox mailing list