From c00bb3cb24d22cfe417874228dd4086729da8fa3 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Wed, 11 Oct 2023 10:33:05 +0200 Subject: ext-action-binder: split events and requests action_bound split into bound and rejected done to simplify binding logic and allow for rejecting a binding after it was made bind split into set_description, set_trigger_hint, set_name, and bind done to allow future extensibilty Signed-off-by: Anna (navi) Figueiredo Gomes --- staging/ext-action-binder/ext-action-binder-v1.xml | 65 +++++++++++++++------- 1 file changed, 45 insertions(+), 20 deletions(-) diff --git a/staging/ext-action-binder/ext-action-binder-v1.xml b/staging/ext-action-binder/ext-action-binder-v1.xml index 9373a62..a32c463 100644 --- a/staging/ext-action-binder/ext-action-binder-v1.xml +++ b/staging/ext-action-binder/ext-action-binder-v1.xml @@ -53,8 +53,7 @@ - - + @@ -66,37 +65,63 @@ - - - Bind an action to the object. this is a one-time request. - After calling bind, the "action_bound" event is fired by the compositor - with the status of the request. - Subsequent calls to bind should be ignored. + + + Sets the namespace:name of the binding. This a kind of action. + + + + + This description may be used by the compositor to render a ui for bindings. + + + + + + The trigger is a suggestion to the compositor, and the action should not rely + to being set to that specific trigger. + The client does not know which trigger was actually set, but when a binding is + bound, it recieves from the compositor a human readable string describing the trigger, + if any, so it could show it in a ui. + - - - + + + 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. + + + + + - - - After the compositor processes a bind request, it calls this - event to notify the client of the result. - in case of success, the trigger set to this action is returned, if any. - in case of failure, this action is destroyed and should not be used anymore. + + + After the compositor processes a bind request, if the action was + bound to this binding, it calls this event to notify the client of the result. - + + + After the compositor processes a bind request, if the binding was + rejected, it calls this event to notify the client of the result. + This event may be sent after a binding was bound, should the compositor + want to remove the binding. + After this event, the binding is destroyed and can't be used anymore. + + + Depending on the user configuration, an action can be either one-off or -- cgit v1.2.3