aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-16 22:01:54 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-16 22:01:54 +1000
commitf6e218a64371b02afdf6b7812a52d70b13635ef3 (patch)
tree7348bf536a2bfbdedabe28d00a3c49b1bfcb559a /sway/tree/container.c
parentMake seat_get_active_child ignore floating children (diff)
downloadsway-f6e218a64371b02afdf6b7812a52d70b13635ef3.tar.gz
sway-f6e218a64371b02afdf6b7812a52d70b13635ef3.tar.zst
sway-f6e218a64371b02afdf6b7812a52d70b13635ef3.zip
Rename seat_get_active_child to seat_get_active_tiling_child
Also renames container to con in one function to prevent ugly line wrapping.
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index f906449a..47687744 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -220,7 +220,7 @@ static struct sway_container *container_at_tabbed(struct sway_node *parent,
220 } 220 }
221 221
222 // Surfaces 222 // Surfaces
223 struct sway_node *current = seat_get_active_child(seat, parent); 223 struct sway_node *current = seat_get_active_tiling_child(seat, parent);
224 return current ? tiling_container_at(current, lx, ly, surface, sx, sy) : NULL; 224 return current ? tiling_container_at(current, lx, ly, surface, sx, sy) : NULL;
225} 225}
226 226
@@ -248,7 +248,7 @@ static struct sway_container *container_at_stacked(struct sway_node *parent,
248 } 248 }
249 249
250 // Surfaces 250 // Surfaces
251 struct sway_node *current = seat_get_active_child(seat, parent); 251 struct sway_node *current = seat_get_active_tiling_child(seat, parent);
252 return current ? tiling_container_at(current, lx, ly, surface, sx, sy) : NULL; 252 return current ? tiling_container_at(current, lx, ly, surface, sx, sy) : NULL;
253} 253}
254 254