aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-11 13:04:06 +0100
committerGitHub <noreply@github.com>2018-07-11 13:04:06 +0100
commit73084c5fa6d9fd7693e4dd5b369e79667ba8dfbe (patch)
treebb126a157973b7636a561d654176b82db12a19f9
parentedfe42032cfe9a5bf49f42801e5c8349e7aa2eec (diff)
parent3b50a2a3af985d61256b716f53b035fb94bafd7c (diff)
Merge pull request #2243 from RyanDwyer/use-fullscreen-saved-buffer
Use saved buffer when fullscreen view is in a transaction
-rw-r--r--sway/desktop/render.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 28c81942..b370f8a2 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -844,7 +844,11 @@ void output_render(struct sway_output *output, struct timespec *when,
}
// TODO: handle views smaller than the output
- render_view_surfaces(fullscreen_view, output, damage, 1.0f);
+ 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);
+ }
if (fullscreen_view->type == SWAY_VIEW_XWAYLAND) {
render_unmanaged(output, damage,