Merge pull request #2583 from RyanDwyer/fix-null-surface-crash

Fix crash when views rapidly map and unmap
This commit is contained in:
Drew DeVault 2018-09-05 21:59:13 -04:00 committed by GitHub
commit 7b79ab2577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}