aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-10-09 22:05:05 +0100
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-03-01 21:44:52 +0100
commit44a2cff3b309f181848b535857b80e2e4e7891e1 (patch)
tree4bf19210814e8b6957f620a6f8a78c2df163082a /include
parent5e18ed3cf03eee9e83909fede46dd98dff652647 (diff)
ext-action-binder-v1: implement new protocol
and add a new command to trigger actions. Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/server.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 27058587..d9b07d79 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -104,6 +104,7 @@ struct sway_container *container_find_resize_parent(struct sway_container *con,
sway_cmd cmd_exec_validate;
sway_cmd cmd_exec_process;
+sway_cmd cmd_action;
sway_cmd cmd_assign;
sway_cmd cmd_bar;
sway_cmd cmd_bindcode;
diff --git a/include/sway/server.h b/include/sway/server.h
index b2eb2c36..39a8f557 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -113,6 +113,11 @@ struct sway_server {
struct wl_listener request_set_cursor_shape;
+ struct wlr_action_binder_v1 *action_binder;
+ struct wl_listener action_binder_bind;
+ struct wl_listener action_binder_unbind;
+ struct wl_listener action_binder_destroy;
+
struct wl_list pending_launcher_ctxs; // launcher_ctx::link
// The timeout for transactions, after which a transaction is applied
@@ -174,6 +179,9 @@ void xdg_activation_v1_handle_request_activate(struct wl_listener *listener,
void *data);
void xdg_activation_v1_handle_new_token(struct wl_listener *listener,
void *data);
+void action_binder_v1_bind(struct wl_listener *listener, void *data);
+void action_binder_v1_unbind(struct wl_listener *listener, void *data);
+void action_binder_v1_delete(struct wl_listener *listener, void *data);
void set_rr_scheduling(void);