Use saved buffer when fullscreen view is in a transaction

Fixes #2237.
This commit is contained in:
Ryan Dwyer 2018-07-11 20:33:36 +10:00
parent 0f14abf512
commit 3b50a2a3af

View file

@ -844,7 +844,11 @@ void output_render(struct sway_output *output, struct timespec *when,
} }
// TODO: handle views smaller than the output // TODO: handle views smaller than the output
if (fullscreen_view->swayc->instructions->length) {
render_saved_view(fullscreen_view, output, damage, 1.0f);
} else {
render_view_surfaces(fullscreen_view, output, damage, 1.0f); render_view_surfaces(fullscreen_view, output, damage, 1.0f);
}
if (fullscreen_view->type == SWAY_VIEW_XWAYLAND) { if (fullscreen_view->type == SWAY_VIEW_XWAYLAND) {
render_unmanaged(output, damage, render_unmanaged(output, damage,