Fix count_surface_iterator

This increments the pointer value, not the actual count.

References: https://github.com/Hjdskes/cage/issues/176
This commit is contained in:
Simon Ser 2021-08-11 11:58:16 +02:00 committed by Jente Hidskes
parent 1a3ab3eb3a
commit b21f9c6322

View file

@ -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