aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-05 21:59:13 -0400
committerGitHub <noreply@github.com>2018-09-05 21:59:13 -0400
commit7b79ab25776d444a2dd837fab2b15616ebbf0828 (patch)
tree7c045f58ab68653728faadf254545ecfb5304d2d /sway
parent97474f12e371c7b92c57f1f107897c29f0f704b2 (diff)
parent9642b87b9ed3b99d506738f54fc189776aa0adce (diff)
Merge pull request #2583 from RyanDwyer/fix-null-surface-crash
Fix crash when views rapidly map and unmap
Diffstat (limited to 'sway')
-rw-r--r--sway/desktop/render.c2
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);
}