aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-09 19:04:45 +0100
committerGitHub <noreply@github.com>2018-07-09 19:04:45 +0100
commitebcdce457a318a0c23509fe1e5ab3a3dc94f24b6 (patch)
treeb980c2518830ffc61b57d5721fa2a7fccf12a4ee /sway/desktop
parentd97b4fa4ed63f6068e0d8d7a1c1bc3ba4c7631fe (diff)
parentb0fc7e98501fc885197de90af6579dc121e7ef46 (diff)
Merge pull request #2223 from RyanDwyer/floating-move
Implement some floating move commands
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/desktop.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sway/desktop/desktop.c b/sway/desktop/desktop.c
index e495790c..6575519d 100644
--- a/sway/desktop/desktop.c
+++ b/sway/desktop/desktop.c
@@ -13,3 +13,12 @@ void desktop_damage_surface(struct wlr_surface *surface, double lx, double ly,
}
}
}
+
+void desktop_damage_whole_container(struct sway_container *con) {
+ for (int i = 0; i < root_container.children->length; ++i) {
+ struct sway_container *cont = root_container.children->items[i];
+ if (cont->type == C_OUTPUT) {
+ output_damage_whole_container(cont->sway_output, con);
+ }
+ }
+}