aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-07-07 18:36:20 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-07-09 23:38:29 +1000
commitab8a86369c01c7146991ff4ae2ef04b0a1db06ca (patch)
tree9ec17bf453a32d7fdd7f621896c9b89c00af8755 /sway/desktop
parent6595d07ec7fe4422590fc8f40e35af82518a1c43 (diff)
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 '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);
+ }
+ }
+}