Implement move to workspace on a floating container

Also adjusts container_floating_translate to not change the current
properties directly.
This commit is contained in:
Ryan Dwyer 2018-08-04 14:46:27 +10:00
parent 6f0bc469e9
commit 36281609ea
3 changed files with 54 additions and 7 deletions

View file

@ -328,6 +328,14 @@ void container_floating_translate(struct sway_container *con,
void container_floating_move_to(struct sway_container *con,
double lx, double ly);
/**
* Move a floating container to the center of the workspace.
*/
void container_floating_move_to_center(struct sway_container *con);
void container_floating_move_to_container(struct sway_container *container,
struct sway_container *destination);
/**
* Mark a container as dirty if it isn't already. Dirty containers will be
* included in the next transaction then unmarked as dirty.