diff options
author | Ryan Dwyer <[email protected]> | 2018-06-29 21:13:22 +1000 |
---|---|---|
committer | Ryan Dwyer <[email protected]> | 2018-06-29 21:13:22 +1000 |
commit | 3a6ed5110c76ef5bed8cc4c26a97759f6201eaac (patch) | |
tree | a24798e2e0954daef195806b01938ec8a8bbcaed /sway/desktop/output.c | |
parent | a2fbb20a616444213ff3967b33eed7f4561e3978 (diff) |
Render saved buffers with the surface's dimensions
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 69d0bdd4..b55a3962 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -354,15 +354,17 @@ static void render_saved_view(struct sway_view *view, struct sway_output *output, pixman_region32_t *damage, float alpha) { struct wlr_output *wlr_output = output->wlr_output; - struct wlr_texture *texture = transaction_get_texture(view); + int width, height; + struct wlr_texture *texture = + transaction_get_saved_texture(view, &width, &height); if (!texture) { return; } struct wlr_box box = { .x = view->swayc->current.view_x - output->swayc->current.swayc_x, .y = view->swayc->current.view_y - output->swayc->current.swayc_y, - .width = view->swayc->current.view_width, - .height = view->swayc->current.view_height, + .width = width, + .height = height, }; struct wlr_box output_box = { |