mirror of
https://github.com/swaywm/sway.git
synced 2024-11-13 14:04:11 +01:00
Merge pull request #2583 from RyanDwyer/fix-null-surface-crash
Fix crash when views rapidly map and unmap
This commit is contained in:
commit
7b79ab2577
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user