mirror of https://github.com/yshui/picom.git
wrap subobject initialization with braces to silence a warning
This commit is contained in:
parent
eeaba75a62
commit
7eddf79ed2
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue