mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
Merge pull request #2686 from RyanDwyer/tab-scrolling
Implement tab cycling using mouse wheel
This commit is contained in:
commit
1af4d314d1
2 changed files with 47 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue