summaryrefslogtreecommitdiffstats
path: root/swaybar
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/swaybar/input.c b/swaybar/input.c
index 4aefc6d6..263d0253 100644
--- a/swaybar/input.c
+++ b/swaybar/input.c
@@ -180,6 +180,10 @@ static void wl_pointer_axis(void *data, struct wl_pointer *wl_pointer,
180 return; 180 return;
181 } 181 }
182 182
183 if (!sway_assert(!wl_list_empty(&output->workspaces), "axis with no workspaces")) {
184 return;
185 }
186
183 struct swaybar_workspace *first = 187 struct swaybar_workspace *first =
184 wl_container_of(output->workspaces.next, first, link); 188 wl_container_of(output->workspaces.next, first, link);
185 struct swaybar_workspace *last = 189 struct swaybar_workspace *last =