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

Fix crash when views rapidly map and unmap
master
Drew DeVault 6 years ago committed by GitHub
commit 7b79ab2577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -266,7 +266,7 @@ static void render_view(struct sway_output *output, pixman_region32_t *damage,
struct sway_view *view = con->view; struct sway_view *view = con->view;
if (view->saved_buffer) { if (view->saved_buffer) {
render_saved_view(view, output, damage, view->container->alpha); render_saved_view(view, output, damage, view->container->alpha);
} else { } else if (view->surface) {
render_view_toplevels(view, output, damage, view->container->alpha); render_view_toplevels(view, output, damage, view->container->alpha);
} }

Loading…
Cancel
Save