aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-09-23 09:39:53 +0200
committerLibravatar GitHub <noreply@github.com>2018-09-23 09:39:53 +0200
commit1af4d314d1873d823903bab72a79023e42221e1b (patch)
tree417a2a10272ac10d8cca1d80162cbee5f606f8be /sway/tree/container.c
parentMerge pull request #2688 from RyanDwyer/exec-commands-without-focus (diff)
parentImplement tab cycling using mouse wheel (diff)
downloadsway-1af4d314d1873d823903bab72a79023e42221e1b.tar.gz
sway-1af4d314d1873d823903bab72a79023e42221e1b.tar.zst
sway-1af4d314d1873d823903bab72a79023e42221e1b.zip
Merge pull request #2686 from RyanDwyer/tab-scrolling
Implement tab cycling using mouse wheel
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 8dc22410..53b127b7 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -215,8 +215,7 @@ static struct sway_container *container_at_tabbed(struct sway_node *parent,
215 child_index = children->length - 1; 215 child_index = children->length - 1;
216 } 216 }
217 struct sway_container *child = children->items[child_index]; 217 struct sway_container *child = children->items[child_index];
218 struct sway_node *node = seat_get_focus_inactive(seat, &child->node); 218 return child;
219 return node->sway_container;
220 } 219 }
221 220
222 // Surfaces 221 // Surfaces
@@ -243,8 +242,7 @@ static struct sway_container *container_at_stacked(struct sway_node *parent,
243 int child_index = (ly - box.y) / title_height; 242 int child_index = (ly - box.y) / title_height;
244 if (child_index < children->length) { 243 if (child_index < children->length) {
245 struct sway_container *child = children->items[child_index]; 244 struct sway_container *child = children->items[child_index];
246 struct sway_node *node = seat_get_focus_inactive(seat, &child->node); 245 return child;
247 return node->sway_container;
248 } 246 }
249 247
250 // Surfaces 248 // Surfaces