<div dir="ltr">On Sun, Aug 18, 2013 at 5:50 PM, Xyne <span dir="ltr"><<a href="mailto:xyne@archlinux.ca" target="_blank">xyne@archlinux.ca</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

On 2013-08-18 16:35 -0400<br>
<div class="im">Dana Jansens wrote:<br>
<br>
>I've been trying to think what else we might do to solve this, what I came<br>
>up with at the moment is if we added more bindings to the rc.xml. We had a<br>
>branch with "hooks" on it to run actions when various events occured in the<br>
>WM, but it was really easy to cause infinite loops by causing an action<br>
>which triggered the hook again.. so it didn't go anywhere yet.<br>
><br>
>But..<br>
><br>
>If we had a "new window" hook, with the default action being "focus", then<br>
>you could replace that with an if action. It would make the <focusnew><br>
>option a lot more general.<br>
><br>
>The only threat here would be an execute action that made another new<br>
>window, of course. But, sometimes on does want to shoot oneself in the foot.<br>
<br>
</div>That would indeed be useful. Aside from focusing, it could be used to manage<br>
layouts with tilers such as pytile or conditionally send applications to<br>
different screens and desktops. It could even be used to prevent multiple<br>
instances of an application from starting.<br></blockquote><div><br></div><div>Well, I think this hook would only run when the window was going to get focused by focusNew. So focus stealing prevention would prevent the hook from running. It should really just (conditionally) focus the window or not.</div>

<div><br></div><div>But, we could explore future hooks.</div><div><br></div><div>Anyway, step 1: <a href="https://github.com/danakj/openbox/commit/aa70b4e0cfbe5753fb2b3d4fef527c903953d879">https://github.com/danakj/openbox/commit/aa70b4e0cfbe5753fb2b3d4fef527c903953d879</a></div>

<div><br></div><div>Step 2 would be a hook to replace the bool in the config.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div class=""><div class="h5"><br>
<br>
_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</div></div></blockquote></div><br></div></div>