aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/desktop.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-07 18:36:20 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-09 23:38:29 +1000
commitab8a86369c01c7146991ff4ae2ef04b0a1db06ca (patch)
tree9ec17bf453a32d7fdd7f621896c9b89c00af8755 /sway/desktop/desktop.c
parentMerge pull request #2226 from emersion/swaylock-daemonize-after-lock (diff)
downloadsway-ab8a86369c01c7146991ff4ae2ef04b0a1db06ca.tar.gz
sway-ab8a86369c01c7146991ff4ae2ef04b0a1db06ca.tar.zst
sway-ab8a86369c01c7146991ff4ae2ef04b0a1db06ca.zip
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/desktop.c')
-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,
13 } 13 }
14 } 14 }
15} 15}
16
17void desktop_damage_whole_container(struct sway_container *con) {
18 for (int i = 0; i < root_container.children->length; ++i) {
19 struct sway_container *cont = root_container.children->items[i];
20 if (cont->type == C_OUTPUT) {
21 output_damage_whole_container(cont->sway_output, con);
22 }
23 }
24}