core: Destroy the correct opaque region when destroying a frame
Freeing the window opaque region rather than the frame one when was
leaking the frame opaque region and wrongly setting the window opaque
region to NULL.
Fixes: 82b2b7688
("core: Add infrastructure to keep window frames' opaque regions")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3188>
This commit is contained in:
parent
f57c239a26
commit
73bc074917
@ -243,7 +243,7 @@ meta_window_destroy_frame (MetaWindow *window)
|
||||
window->frame_bounds = NULL;
|
||||
}
|
||||
|
||||
g_clear_pointer (&window->opaque_region, cairo_region_destroy);
|
||||
g_clear_pointer (&frame->opaque_region, cairo_region_destroy);
|
||||
|
||||
/* Move keybindings to window instead of frame */
|
||||
meta_window_grab_keys (window);
|
||||
|
Loading…
Reference in New Issue
Block a user