sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 19421373b9837860115f1fcf70f160f9d716aee1
parent c5541763c0c101944473a4cf7dd9b59e1dd04e0b
Author: Ian Fan <ianfan0@gmail.com>
Date:   Thu, 25 Oct 2018 14:07:44 +0100

swaybar: when scrolling, check that there are workspaces to scroll on

Diffstat:
Mswaybar/input.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/swaybar/input.c b/swaybar/input.c @@ -180,6 +180,10 @@ static void wl_pointer_axis(void *data, struct wl_pointer *wl_pointer, return; } + if (!sway_assert(!wl_list_empty(&output->workspaces), "axis with no workspaces")) { + return; + } + struct swaybar_workspace *first = wl_container_of(output->workspaces.next, first, link); struct swaybar_workspace *last =