aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.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/desktop/output.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/desktop/output.c')
-rw-r--r--sway/desktop/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index a5db15cd..cfb5a710 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -232,7 +232,7 @@ static void scale_box(struct wlr_box *box, float scale) {
232 232
233struct sway_workspace *output_get_active_workspace(struct sway_output *output) { 233struct sway_workspace *output_get_active_workspace(struct sway_output *output) {
234 struct sway_seat *seat = input_manager_current_seat(input_manager); 234 struct sway_seat *seat = input_manager_current_seat(input_manager);
235 struct sway_node *focus = seat_get_active_child(seat, &output->node); 235 struct sway_node *focus = seat_get_active_tiling_child(seat, &output->node);
236 if (!focus) { 236 if (!focus) {
237 return output->workspaces->items[0]; 237 return output->workspaces->items[0];
238 } 238 }