diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-07 18:36:20 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-09 23:38:29 +1000 |
commit | ab8a86369c01c7146991ff4ae2ef04b0a1db06ca (patch) | |
tree | 9ec17bf453a32d7fdd7f621896c9b89c00af8755 /include/sway/tree | |
parent | Merge pull request #2226 from emersion/swaylock-daemonize-after-lock (diff) | |
download | sway-ab8a86369c01c7146991ff4ae2ef04b0a1db06ca.tar.gz sway-ab8a86369c01c7146991ff4ae2ef04b0a1db06ca.tar.zst sway-ab8a86369c01c7146991ff4ae2ef04b0a1db06ca.zip |
Implement some floating move commands
This implements the following for floating containers:
* move <direction> <amount>
* move [absolute] position <x> <y>
* move [absolute] position mouse
Diffstat (limited to 'include/sway/tree')
-rw-r--r-- | include/sway/tree/container.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 728daa84..a69da9db 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -297,4 +297,10 @@ bool container_is_floating(struct sway_container *container); | |||
297 | */ | 297 | */ |
298 | void container_get_box(struct sway_container *container, struct wlr_box *box); | 298 | void container_get_box(struct sway_container *container, struct wlr_box *box); |
299 | 299 | ||
300 | /** | ||
301 | * Move a floating container to a new layout-local position. | ||
302 | */ | ||
303 | void container_floating_move_to(struct sway_container *con, | ||
304 | double lx, double ly); | ||
305 | |||
300 | #endif | 306 | #endif |