Merge pull request #2686 from RyanDwyer/tab-scrolling

Implement tab cycling using mouse wheel
This commit is contained in:
emersion 2018-09-23 09:39:53 +02:00 committed by GitHub
commit 1af4d314d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 8 deletions

View file

@ -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