wrap subobject initialization with braces to silence a warning

This commit is contained in:
Omar Polo 2020-10-28 20:27:01 +01:00
parent eeaba75a62
commit 7eddf79ed2
No known key found for this signature in database
GPG Key ID: 35F98C96A1786F0D
1 changed files with 1 additions and 1 deletions

View File

@ -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(&reg_win, (rect_t[]){0, 0, outer_width, outer_height}, 1);
pixman_region32_init_rects(&reg_win, (rect_t[]){{0, 0, outer_width, outer_height}}, 1);
pixman_region32_intersect(res, &reg_win, res);
pixman_region32_fini(&reg_win);
}