Re: Quake-like-console configuration: problem with ForEach action

Martin Jiřička <[email protected]>
Newsgroups gmane.comp.window-managers.openbox
Message-ID <CA+i+VCd1Zm_7xdUQmGt5N6Pm830qMe2rwBcq3jThn1cganzGDA@mail.gmail.com>
> It feels like there may be a bug here though. If you put the tests in a
> <query> with target="default" then does it work?

No, it does not.

But what is definitely buggy is this code:

  <keybind key="W-x">
    <action name="If">
      <query target="default">
        <title>quake_console</title>
      </query>
      <then>
        <action name="SendToDesktop">
          <to>3</to>
          <wrap>no</wrap>
          <follow>no</follow>
        </action>
      </then>
      <else>
        <action name="SendToDesktop">
          <to>4</to>
          <wrap>no</wrap>
          <follow>no</follow>
        </action>
      </else>
    </action>
  </keybind>

This sends all windows into Desktop 3, thus the condition is always
evaluated as true.

Moreover I do not understand why the ForEach action would need a
"target" attribute because -- as I understand it -- it should test all
windows.
_______________________________________________
openbox mailing list
[email protected]
http://icculus.org/mailman/listinfo/openbox
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.