Implement some floating move commands

This implements the following for floating containers:

* move <direction> <amount>
* move [absolute] position <x> <y>
* move [absolute] position mouse
This commit is contained in:
Ryan Dwyer 2018-07-07 18:36:20 +10:00
parent 6595d07ec7
commit ab8a86369c
6 changed files with 208 additions and 17 deletions

View file

@ -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);
}
}
}