From c0549f97732dd57080c15bdd2b64c4162b1a856a Mon Sep 17 00:00:00 2001 From: rcaridade145 Date: Sat, 29 Feb 2020 13:01:36 +0000 Subject: compositor: fix possible crash closing/destroying window . Fixes to previous commit. Partially restore call to destroy_win in compositor when calling meta_window_free. This is needed to ensure that we never call meta_window_get_frame_bounds while windows is destroying. https://bugzilla.gnome.org/show_bug.cgi?id=751833 Based on commit https://gitlab.gnome.org/GNOME/metacity/-/commit/a9f28dbc26f5211ef08889109db3dc8c7ba76aca --- src/core/window.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/core/window.c') diff --git a/src/core/window.c b/src/core/window.c index 21d605e2..603bedf3 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -6214,6 +6214,17 @@ idle_update_icon (gpointer data) return FALSE; } + +MetaWorkspace * +meta_window_get_workspace (MetaWindow *window) +{ + if (window->on_all_workspaces) + return window->screen->active_workspace; + else + return window->workspace; +} + + GList* meta_window_get_workspaces (MetaWindow *window) { -- cgit v1.2.1