From 7eddf79ed205cad8a1e52ca09c0e957b3622b3ee Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Wed, 28 Oct 2020 20:27:01 +0100 Subject: [PATCH] wrap subobject initialization with braces to silence a warning --- src/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win.c b/src/win.c index 7ff73c6..d32ec97 100644 --- a/src/win.c +++ b/src/win.c @@ -240,7 +240,7 @@ void win_get_region_frame_local(const struct managed_win *w, region_t *res) { // limit the frame region to inside the window region_t reg_win; - pixman_region32_init_rects(®_win, (rect_t[]){0, 0, outer_width, outer_height}, 1); + pixman_region32_init_rects(®_win, (rect_t[]){{0, 0, outer_width, outer_height}}, 1); pixman_region32_intersect(res, ®_win, res); pixman_region32_fini(®_win); }