diff options
author | Mack Straight <eizneckam@gmail.com> | 2019-01-01 09:45:14 -0500 |
---|---|---|
committer | Brian Ashworth <RedSoxFan@users.noreply.github.com> | 2019-01-01 10:08:27 -0500 |
commit | a96e86744ffd19d9ed8a7fc8e5468bb8b274b228 (patch) | |
tree | f69d0370d69998abfd5e318b0af0742018c09afd /sway | |
parent | 3b4cf3718b05d5ebd98d730abb742e82f8980287 (diff) |
Fix fullscreen view rendering crash
See issue #3359 for reproduction details. When a fullscreen view is
unmapped and there's a preceding transaction waiting, there may be
neither a saved buffer or a surface to render. This change matches
the equivalent code in render_view.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/desktop/render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 14881e96..6c9fe23c 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -1017,7 +1017,7 @@ void output_render(struct sway_output *output, struct timespec *when, if (fullscreen_con->view) { if (fullscreen_con->view->saved_buffer) { render_saved_view(fullscreen_con->view, output, damage, 1.0f); - } else { + } else if (fullscreen_con->view->surface) { render_view_toplevels(fullscreen_con->view, output, damage, 1.0f); } |