aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/status_line.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-22 10:42:59 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-22 10:42:59 +1000
commitbf5933c501a3c1705715b62dc1507df2bf0a4d2b (patch)
treeb95e6a1f8f3352c3fe93cf405108f6f6652f3947 /swaybar/status_line.c
parentMerge pull request #2666 from emersion/swaybar-hotplug (diff)
downloadsway-bf5933c501a3c1705715b62dc1507df2bf0a4d2b.tar.gz
sway-bf5933c501a3c1705715b62dc1507df2bf0a4d2b.tar.zst
sway-bf5933c501a3c1705715b62dc1507df2bf0a4d2b.zip
Implement tab cycling using mouse wheel
Firstly, a change had to be made to the container_at functions. If you create layout `T[view H[view view]]` and hover the second tab, the container_at functions would return the focus_inactive child. They now return the split container itself. To compensate for this, dispatch_cursor_button has been adjusted to find the focus_inactive child before focusing it. The actual implementation of wheel scrolling is pretty straightforward. This uses handle_cursor_axis, so I took a similar approach to handle_cursor_button (ie. creating a dispatch_cursor_axis function).
Diffstat (limited to 'swaybar/status_line.c')
0 files changed, 0 insertions, 0 deletions