summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-22 10:57:39 -0400
committerraveit65 <[email protected]>2019-06-16 18:12:44 +0200
commit5bef622c7857b7736e706a72619a03fdbe7fa7bb (patch)
tree5e5f90b4d3f7be043a490f6ab09d2629dc33eabe
parent68438829dc3050fafddcf24a059b93f345c9b5eb (diff)
downloadmarco-5bef622c7857b7736e706a72619a03fdbe7fa7bb.tar.bz2
marco-5bef622c7857b7736e706a72619a03fdbe7fa7bb.tar.xz
frame: destroy window->frame_bounds when destroying the frame
Since window->frame_bounds is used as a cache we need to invalidate it when destroying the frame. https://bugzilla.gnome.org/show_bug.cgi?id=660773 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/330ff9b5
-rw-r--r--src/core/frame.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/frame.c b/src/core/frame.c
index d2f5cfd3..b6ed741e 100644
--- a/src/core/frame.c
+++ b/src/core/frame.c
@@ -214,6 +214,11 @@ meta_window_destroy_frame (MetaWindow *window)
frame->xwindow);
window->frame = NULL;
+ if (window->frame_bounds)
+ {
+ cairo_region_destroy (window->frame_bounds);
+ window->frame_bounds = NULL;
+ }
/* Move keybindings to window instead of frame */
meta_window_grab_keys (window);