diff options
author | Florian Müllner <fmuellner@gnome.org> | 2014-09-27 04:11:00 +0200 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2014-09-27 06:41:35 +0200 |
commit | df90545258a5aa46f3a39f6334c6459b900ce8b2 (patch) | |
tree | adf696b6b7174ea07a5cbe219a0ab05290e353a9 | |
parent | c954f9cc245dc85b5d698a14ec21e71d6c6d88c4 (diff) | |
download | mutter-df90545258a5aa46f3a39f6334c6459b900ce8b2.tar.gz |
window: Fix crash when mapping sticky window
Since the introduction of set_workspace_state(), window->workspace
will always be NULL when on_all_workspaces is set - passing that
to a workspace function that does not validate its input will then
result in a crash.
Use the get_workspace() function instead, which will always return
a valid workspace.
-rw-r--r-- | src/core/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/window.c b/src/core/window.c index 5039e308d..863027a5e 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -2095,7 +2095,7 @@ windows_overlap (const MetaWindow *w1, const MetaWindow *w2) static gboolean window_would_be_covered (const MetaWindow *newbie) { - MetaWorkspace *workspace = newbie->workspace; + MetaWorkspace *workspace = meta_window_get_workspace ((MetaWindow *)newbie); GList *tmp, *windows; windows = meta_workspace_list_windows (workspace); |