aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-09-23 09:39:53 +0200
committerGitHub <noreply@github.com>2018-09-23 09:39:53 +0200
commit1af4d314d1873d823903bab72a79023e42221e1b (patch)
tree417a2a10272ac10d8cca1d80162cbee5f606f8be /sway/tree
parent68395f34f686aa1901077505405775ba5bafe6ee (diff)
parentbf5933c501a3c1705715b62dc1507df2bf0a4d2b (diff)
Merge pull request #2686 from RyanDwyer/tab-scrolling
Implement tab cycling using mouse wheel
Diffstat (limited to 'sway/tree')
-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,
child_index = children->length - 1;
}
struct sway_container *child = children->items[child_index];
- struct sway_node *node = seat_get_focus_inactive(seat, &child->node);
- return node->sway_container;
+ return child;
}
// Surfaces
@@ -243,8 +242,7 @@ static struct sway_container *container_at_stacked(struct sway_node *parent,
int child_index = (ly - box.y) / title_height;
if (child_index < children->length) {
struct sway_container *child = children->items[child_index];
- struct sway_node *node = seat_get_focus_inactive(seat, &child->node);
- return node->sway_container;
+ return child;
}
// Surfaces