clutter/pick-stack: Avoid uninitialized cairo_region_subtract_rectangle
This fixes instances of: ``` *** BUG *** In pixman_region32_init_rect: Invalid rectangle passed Set a breakpoint on '_pixman_log_error' to debug ``` seen when navigating the overview and launching apps. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2349>
This commit is contained in:
parent
58bcd30ee6
commit
b2805dd5a6
@ -491,7 +491,9 @@ calculate_clear_area (ClutterPickStack *pick_stack,
|
||||
rec->base.rect.y1 == rec->base.rect.y2))
|
||||
continue;
|
||||
|
||||
clutter_actor_get_paint_box (rec->actor, &paint_box);
|
||||
if (!clutter_actor_get_paint_box (rec->actor, &paint_box))
|
||||
continue;
|
||||
|
||||
cairo_region_subtract_rectangle (area,
|
||||
&(cairo_rectangle_int_t) {
|
||||
.x = paint_box.x1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user