aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-07-09 19:04:45 +0100
committerFurkan Sahin <furkan-dev@proton.me>2018-07-09 19:04:45 +0100
commit852a55136e991eb35bf2736bdb8c3f8535d09c6d (patch)
treeb980c2518830ffc61b57d5721fa2a7fccf12a4ee /include
parent40cd90493702e2336a9331ea0da3484cd38cbc1c (diff)
parent9ab01cf352f1e51ffb39895b160bea2b56d44a6c (diff)
Merge pull request #2223 from RyanDwyer/floating-move
Implement some floating move commands
Diffstat (limited to 'include')
-rw-r--r--include/sway/desktop.h4
-rw-r--r--include/sway/tree/container.h6
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 @@
#include <wlr/types/wlr_surface.h>
+struct sway_container;
+
void desktop_damage_surface(struct wlr_surface *surface, double lx, double ly,
bool whole);
+
+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);
*/
void container_get_box(struct sway_container *container, struct wlr_box *box);
+/**
+ * Move a floating container to a new layout-local position.
+ */
+void container_floating_move_to(struct sway_container *con,
+ double lx, double ly);
+
#endif