diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-05 21:59:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-05 21:59:13 -0400 |
commit | 7b79ab25776d444a2dd837fab2b15616ebbf0828 (patch) | |
tree | 7c045f58ab68653728faadf254545ecfb5304d2d | |
parent | 97474f12e371c7b92c57f1f107897c29f0f704b2 (diff) | |
parent | 9642b87b9ed3b99d506738f54fc189776aa0adce (diff) |
Merge pull request #2583 from RyanDwyer/fix-null-surface-crash
Fix crash when views rapidly map and unmap
-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 9d80f3c7..bb3902ec 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -266,7 +266,7 @@ static void render_view(struct sway_output *output, pixman_region32_t *damage, struct sway_view *view = con->view; if (view->saved_buffer) { render_saved_view(view, output, damage, view->container->alpha); - } else { + } else if (view->surface) { render_view_toplevels(view, output, damage, view->container->alpha); } |