diff options
author | emersion <contact@emersion.fr> | 2018-07-09 19:04:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-09 19:04:45 +0100 |
commit | ebcdce457a318a0c23509fe1e5ab3a3dc94f24b6 (patch) | |
tree | b980c2518830ffc61b57d5721fa2a7fccf12a4ee /include | |
parent | Merge pull request #2230 from vilhalmer/replace-empty-workspace (diff) | |
parent | Remove duplicate function declaration and add assertion (diff) | |
download | sway-ebcdce457a318a0c23509fe1e5ab3a3dc94f24b6.tar.gz sway-ebcdce457a318a0c23509fe1e5ab3a3dc94f24b6.tar.zst sway-ebcdce457a318a0c23509fe1e5ab3a3dc94f24b6.zip |
Merge pull request #2223 from RyanDwyer/floating-move
Implement some floating move commands
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/desktop.h | 4 | ||||
-rw-r--r-- | include/sway/tree/container.h | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/sway/desktop.h b/include/sway/desktop.h index f1ad759a..348fb187 100644 --- a/include/sway/desktop.h +++ b/include/sway/desktop.h | |||
@@ -1,4 +1,8 @@ | |||
1 | #include <wlr/types/wlr_surface.h> | 1 | #include <wlr/types/wlr_surface.h> |
2 | 2 | ||
3 | struct sway_container; | ||
4 | |||
3 | void desktop_damage_surface(struct wlr_surface *surface, double lx, double ly, | 5 | void desktop_damage_surface(struct wlr_surface *surface, double lx, double ly, |
4 | bool whole); | 6 | bool whole); |
7 | |||
8 | void desktop_damage_whole_container(struct sway_container *con); | ||
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 |