diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-04 14:46:27 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-08 08:48:20 +1000 |
commit | 36281609ea882d4c0a2a10fc9e604eb1ec2e8951 (patch) | |
tree | 9d24fd3116da5feb8922ac041633d795d96e9596 /include | |
parent | Merge pull request #2432 from RyanDwyer/fix-move-crash (diff) | |
download | sway-36281609ea882d4c0a2a10fc9e604eb1ec2e8951.tar.gz sway-36281609ea882d4c0a2a10fc9e604eb1ec2e8951.tar.zst sway-36281609ea882d4c0a2a10fc9e604eb1ec2e8951.zip |
Implement move to workspace on a floating container
Also adjusts container_floating_translate to not change the current
properties directly.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/container.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 16a180f8..d82db89c 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -329,6 +329,14 @@ void container_floating_move_to(struct sway_container *con, | |||
329 | double lx, double ly); | 329 | double lx, double ly); |
330 | 330 | ||
331 | /** | 331 | /** |
332 | * Move a floating container to the center of the workspace. | ||
333 | */ | ||
334 | void container_floating_move_to_center(struct sway_container *con); | ||
335 | |||
336 | void container_floating_move_to_container(struct sway_container *container, | ||
337 | struct sway_container *destination); | ||
338 | |||
339 | /** | ||
332 | * Mark a container as dirty if it isn't already. Dirty containers will be | 340 | * Mark a container as dirty if it isn't already. Dirty containers will be |
333 | * included in the next transaction then unmarked as dirty. | 341 | * included in the next transaction then unmarked as dirty. |
334 | */ | 342 | */ |