<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 2, 2015 at 1:05 PM, Martin Jiřička <span dir="ltr"><<a href="mailto:mjiricka@gmail.com" target="_blank">mjiricka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> It feels like there may be a bug here though. If you put the tests in a<br>
> <query> with target="default" then does it work?<br>
<br>
</span>No, it does not.<br>
<br>
But what is definitely buggy is this code:<br>
<br>
  <keybind key="W-x"><br>
    <action name="If"><br>
      <query target="default"><br>
        <title>quake_console</title><br>
      </query><br>
      <then><br>
        <action name="SendToDesktop"><br>
          <to>3</to><br>
<span class="">          <wrap>no</wrap><br>
          <follow>no</follow><br>
        </action><br>
      </then><br>
      <else><br>
</span>        <action name="SendToDesktop"><br>
          <to>4</to><br>
<span class="">          <wrap>no</wrap><br>
          <follow>no</follow><br>
        </action><br>
      </else><br>
    </action><br>
</span>  </keybind><br>
<br>
This sends all windows into Desktop 3, thus the condition is always<br>
evaluated as true.<br></blockquote><div><br></div><div>Hm, something's definitely sketchy. Can you file a bug in the bug tracker about it so it doesn't get lost?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Moreover I do not understand why the ForEach action would need a<br>
"target" attribute because -- as I understand it -- it should test all<br>
windows.<br></blockquote><div><br></div><div>It lets you act on all windows based on tests against your current focus window.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">_______________________________________________<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>