]> git.mdlowis.com Git - proto/labwc.git/commit
action: add support for <prompt> in 'If' actions
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 20 Dec 2024 09:14:32 +0000 (10:14 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 9 Aug 2025 09:44:03 +0000 (10:44 +0100)
commitfba73a003652917799dd3d26165a52ea686b7f93
tree98fb404372712236292384c307c88cfad2a51369
parent32e308b5d512e501097d7ba5871345f0f7710917
action: add support for <prompt> in 'If' actions

...and allow If Action without activator view.

For example:

    <action name="If">
      <prompt message="Toggle maximize?"/>
      <then>
        <action name="ToggleMaximize" />
      </then>
    </action>

Also revert the change in b9c84f9 that <else> branch is always taken when
no window is focused.

Co-Authored-by: johanmalm
Co-Authored-by: tokyo4j
include/action.h
src/action.c
src/server.c