aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 2df2332c..92408ce6 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -1052,6 +1052,10 @@ static struct sway_container *container_floating_find_output(
1052 1052
1053void container_floating_move_to(struct sway_container *con, 1053void container_floating_move_to(struct sway_container *con,
1054 double lx, double ly) { 1054 double lx, double ly) {
1055 if (!sway_assert(container_is_floating(con),
1056 "Expected a floating container")) {
1057 return;
1058 }
1055 desktop_damage_whole_container(con); 1059 desktop_damage_whole_container(con);
1056 container_floating_translate(con, lx - con->x, ly - con->y); 1060 container_floating_translate(con, lx - con->x, ly - con->y);
1057 desktop_damage_whole_container(con); 1061 desktop_damage_whole_container(con);