diff options
author | rcaridade145 <[email protected]> | 2020-02-29 12:01:51 +0000 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2020-05-27 11:26:47 -0400 |
commit | 071e7a7b4743aa360df037fd0c02a0300910a4a6 (patch) | |
tree | 0a83fd075a46aadcb13c9d4807a601faba5acbc9 /src/core | |
parent | 92c984c8f657e078742e641f1fd6d05acc87f3ec (diff) | |
download | marco-071e7a7b4743aa360df037fd0c02a0300910a4a6.tar.bz2 marco-071e7a7b4743aa360df037fd0c02a0300910a4a6.tar.xz |
window: fix crash if workspace is null
Based on commit https://gitlab.gnome.org/GNOME/metacity/-/commit/24d35569bdb78d1da3b53ed1a6d81d365d60bed0
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/window.c b/src/core/window.c index 9dfe8634..21d605e2 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -2098,9 +2098,10 @@ windows_overlap (const MetaWindow *w1, const MetaWindow *w2) static gboolean window_would_be_covered (const MetaWindow *newbie) { - MetaWorkspace *workspace = newbie->workspace; + MetaWorkspace *workspace; GList *tmp, *windows; + workspace = meta_window_get_workspace ((MetaWindow *) newbie); windows = meta_workspace_list_windows (workspace); tmp = windows; |