From 97ac0d90ebe68adfd2f3e8bd690414912843121b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 11 Aug 2021 11:58:16 +0200 Subject: [PATCH] Fix count_surface_iterator This increments the pointer value, not the actual count. References: https://github.com/Hjdskes/cage/issues/176 --- output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.c b/output.c index d8da3b9..0f4f6b2 100644 --- a/output.c +++ b/output.c @@ -185,7 +185,7 @@ static void count_surface_iterator(struct cg_output *output, struct wlr_surface *surface, struct wlr_box *_box, void *data) { size_t *n = data; - n++; + (*n)++; } static bool