diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/desktop/output.c | 4 | ||||
-rw-r--r-- | sway/desktop/render.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 6d4f5342..ab8fd7e8 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -99,8 +99,8 @@ static bool get_surface_box(struct surface_iterator_data *data, | |||
99 | int sw = surface->current.width; | 99 | int sw = surface->current.width; |
100 | int sh = surface->current.height; | 100 | int sh = surface->current.height; |
101 | 101 | ||
102 | double _sx = sx + surface->sx; | 102 | double _sx = sx; |
103 | double _sy = sy + surface->sy; | 103 | double _sy = sy; |
104 | rotate_child_position(&_sx, &_sy, sw, sh, data->width, data->height, | 104 | rotate_child_position(&_sx, &_sy, sw, sh, data->width, data->height, |
105 | data->rotation); | 105 | data->rotation); |
106 | 106 | ||
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 56936d53..42d62b90 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c | |||
@@ -159,8 +159,8 @@ static void render_surface_iterator(struct sway_output *output, struct sway_view | |||
159 | struct wlr_box dst_box = *_box; | 159 | struct wlr_box dst_box = *_box; |
160 | struct sway_container *container = data->container; | 160 | struct sway_container *container = data->container; |
161 | if (container != NULL) { | 161 | if (container != NULL) { |
162 | dst_box.width = fmin(dst_box.width, container->current.content_width - surface->sx); | 162 | dst_box.width = fmin(dst_box.width, container->current.content_width); |
163 | dst_box.height = fmin(dst_box.height, container->current.content_height - surface->sy); | 163 | dst_box.height = fmin(dst_box.height, container->current.content_height); |
164 | } | 164 | } |
165 | scale_box(&dst_box, wlr_output->scale); | 165 | scale_box(&dst_box, wlr_output->scale); |
166 | 166 | ||