diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-11 20:33:36 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-11 20:33:36 +1000 |
commit | 3b50a2a3af985d61256b716f53b035fb94bafd7c (patch) | |
tree | 16df1a77fda2820c93b18f2b061542f73a66594b /sway/desktop | |
parent | 0f14abf5120db02ee80df4cc931e2abcd05af396 (diff) |
Use saved buffer when fullscreen view is in a transaction
Fixes #2237.
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/render.c | 6 |
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, |