aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-07-11 20:33:36 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-07-11 20:33:36 +1000
commit3b50a2a3af985d61256b716f53b035fb94bafd7c (patch)
tree16df1a77fda2820c93b18f2b061542f73a66594b /sway
parent0f14abf5120db02ee80df4cc931e2abcd05af396 (diff)
Use saved buffer when fullscreen view is in a transaction
Fixes #2237.
Diffstat (limited to 'sway')
-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,