aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-10-11 12:37:32 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-10-11 12:47:24 +0200
commitd7c710604f54362727e2a6234ee9271f36a41c58 (patch)
treed2651fa2a215b6bbdfc2c1be83cb1c997dc326dd
parentfe7ecebfcc1efb16761aa98882ff9c4baf5ac930 (diff)
ext-action-binder: move bind to binder instead of binding
this allows for many bindings to be processed and bound or rejected at once. Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
-rw-r--r--staging/ext-action-binder/ext-action-binder-v1.xml30
1 files changed, 17 insertions, 13 deletions
diff --git a/staging/ext-action-binder/ext-action-binder-v1.xml b/staging/ext-action-binder/ext-action-binder-v1.xml
index d24d674..76f05a9 100644
--- a/staging/ext-action-binder/ext-action-binder-v1.xml
+++ b/staging/ext-action-binder/ext-action-binder-v1.xml
@@ -56,6 +56,23 @@
<description summary="create a binding"/>
<arg name="binding" type="new_id" interface="ext_action_binding_v1" summary="the new binding" />
</request>
+
+ <request name="bind">
+ <description summary="binds all created bindings">
+ Binds all bindings created from this interface.
+ This request may be called again if new bindings are created,
+ already bound bindings are unaffected.
+
+ After calling bind, either the "bound" or "rejected" event is sent
+ for each binding created.
+
+ If no action has been set for any binding, the error "invalid_binding" is raised.
+ </description>
+ </request>
+
+ <enum name="error">
+ <entry name="invalid_binding" value="0" summary="the binding has no action set"/>
+ </enum>
</interface>
<interface name="ext_action_binding_v1" version="1">
@@ -123,19 +140,6 @@
<arg name="trigger" type="string" summary="a trigger that the client would like to trigger the action"/>
</request>
- <request name="bind">
- <description summary="binds an action">
- Bind an action to the object. this is a one-time request.
- After calling bind, either the "bound" or "rejected" event is sent.
- Subsequent calls to bind should be ignored.
- If no action has been set for the binding, the error "invalid_action" is raised.
- </description>
- </request>
-
- <enum name="error">
- <entry name="invalid_action" value="0" summary="the binding has no action set"/>
- </enum>
-
<event name="bound">
<description summary="the compositor bound the binding to an action">
After the compositor processes a bind request, if the action was