Add the swap_workspace command

The added command allow the user to swap the contents of two workspaces.

Co-authored-by: Arne <ge47com@tum.de>
This commit is contained in:
Fabian Specht 2024-01-12 16:02:12 +01:00
parent c5fd8c050f
commit c2eaf01767
No known key found for this signature in database
GPG key ID: 3E324CC0E6232463
7 changed files with 211 additions and 0 deletions

View file

@ -184,6 +184,7 @@ sway_cmd cmd_sticky;
sway_cmd cmd_swaybg_command;
sway_cmd cmd_swaynag_command;
sway_cmd cmd_swap;
sway_cmd cmd_swap_workspace_content;
sway_cmd cmd_tiling_drag;
sway_cmd cmd_tiling_drag_threshold;
sway_cmd cmd_title_align;

View file

@ -164,6 +164,9 @@ struct sway_container *tiling_container_at(
struct sway_node *parent, double lx, double ly,
struct wlr_surface **surface, double *sx, double *sy);
void container_get_first_view(struct sway_container *container,
struct sway_container **view);
void container_for_each_child(struct sway_container *container,
void (*f)(struct sway_container *container, void *data), void *data);