aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-08-17 00:03:57 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-08-18 10:39:38 +1000
commit8034c2542620cc9f2699b242cda94c04fee03051 (patch)
tree6cf216a8b9ded1da6157d6283acf80a45f0f906b /sway/desktop/render.c
parent982a2d0c99f4128a7cf2236ca190dd9b4e6d7828 (diff)
Render saved buffer using saved geometry
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 93fcfbf4..28c5a3ed 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -234,10 +234,8 @@ static void render_saved_view(struct sway_view *view,
.width = view->saved_buffer_width,
.height = view->saved_buffer_height,
};
- struct wlr_box geometry;
- view_get_geometry(view, &geometry);
- box.x -= geometry.x;
- box.y -= geometry.y;
+ box.x -= view->saved_geometry.x;
+ box.y -= view->saved_geometry.y;
struct wlr_box output_box = {
.width = output->swayc->current.swayc_width,