aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index a105ffba..608f3ee9 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -162,8 +162,8 @@ static void render_surface_iterator(struct sway_output *output, struct sway_view
162 struct wlr_box dst_box = *_box; 162 struct wlr_box dst_box = *_box;
163 struct sway_container *container = data->container; 163 struct sway_container *container = data->container;
164 if (container != NULL) { 164 if (container != NULL) {
165 dst_box.width = fmin(dst_box.width, container->current.content_width - surface->sx); 165 dst_box.width = fmin(dst_box.width, container->current.content_width);
166 dst_box.height = fmin(dst_box.height, container->current.content_height - surface->sy); 166 dst_box.height = fmin(dst_box.height, container->current.content_height);
167 } 167 }
168 scale_box(&dst_box, wlr_output->scale); 168 scale_box(&dst_box, wlr_output->scale);
169 169