mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 08:26:45 +01:00
Fix fullscreen view rendering crash
See issue #3359 for reproduction details. When a fullscreen view is unmapped and there's a preceding transaction waiting, there may be neither a saved buffer or a surface to render. This change matches the equivalent code in render_view.
This commit is contained in:
parent
3b4cf3718b
commit
a96e86744f
1 changed files with 1 additions and 1 deletions
|
@ -1017,7 +1017,7 @@ void output_render(struct sway_output *output, struct timespec *when,
|
|||
if (fullscreen_con->view) {
|
||||
if (fullscreen_con->view->saved_buffer) {
|
||||
render_saved_view(fullscreen_con->view, output, damage, 1.0f);
|
||||
} else {
|
||||
} else if (fullscreen_con->view->surface) {
|
||||
render_view_toplevels(fullscreen_con->view,
|
||||
output, damage, 1.0f);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue