mirror of
https://github.com/NickHu/sway
synced 2025-01-16 15:41:47 +01:00
Render saved buffer using saved geometry
This commit is contained in:
parent
982a2d0c99
commit
8034c25426
1 changed files with 2 additions and 4 deletions
|
@ -234,10 +234,8 @@ static void render_saved_view(struct sway_view *view,
|
||||||
.width = view->saved_buffer_width,
|
.width = view->saved_buffer_width,
|
||||||
.height = view->saved_buffer_height,
|
.height = view->saved_buffer_height,
|
||||||
};
|
};
|
||||||
struct wlr_box geometry;
|
box.x -= view->saved_geometry.x;
|
||||||
view_get_geometry(view, &geometry);
|
box.y -= view->saved_geometry.y;
|
||||||
box.x -= geometry.x;
|
|
||||||
box.y -= geometry.y;
|
|
||||||
|
|
||||||
struct wlr_box output_box = {
|
struct wlr_box output_box = {
|
||||||
.width = output->swayc->current.swayc_width,
|
.width = output->swayc->current.swayc_width,
|
||||||
|
|
Loading…
Reference in a new issue