[openbox] Quake-like-console configuration: problem with ForEach action

Martin Jiřička mjiricka at gmail.com
Fri Jan 2 16:05:15 EST 2015


> 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.


More information about the openbox mailing list