mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
actor/frames: Check if frame bounds existing before copying them
Avoids a failure once we port to MtkRegion as we ensure that the region is not NULL Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3292>
This commit is contained in:
parent
f84733f791
commit
058afb67f4
@ -1068,10 +1068,11 @@ update_frame_bounds (MetaWindowActorX11 *actor_x11)
|
||||
{
|
||||
MetaWindow *window =
|
||||
meta_window_actor_get_meta_window (META_WINDOW_ACTOR (actor_x11));
|
||||
|
||||
cairo_region_t *frame_bounds = meta_window_get_frame_bounds (window);
|
||||
g_clear_pointer (&actor_x11->frame_bounds, cairo_region_destroy);
|
||||
actor_x11->frame_bounds =
|
||||
cairo_region_copy (meta_window_get_frame_bounds (window));
|
||||
|
||||
if (frame_bounds)
|
||||
actor_x11->frame_bounds = cairo_region_copy (frame_bounds);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user