diff options
author | Denys Dmytriyenko <denys@konsulko.com> | 2024-01-30 19:04:07 -0500 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2024-03-11 19:59:17 +0200 |
commit | 6d2720303d8441525ba2e37c9d87daef568f8cdc (patch) | |
tree | af2a8b9554a697e80b7ceb570f570012a4e0da0d /src/compositor.c | |
parent | a0e11353f78cdfea9f64244b69542511654a8c53 (diff) |
src: use weston_coord_* structures
Offsets and coordinates are now handled and passed around via
corresponding weston_coord_* structures.
Bug-AGL: SPEC-5061
Change-Id: Ifa6958cce71eca80e4412545c3542842cd4d64da
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Diffstat (limited to 'src/compositor.c')
-rw-r--r-- | src/compositor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compositor.c b/src/compositor.c index 8d16802..6097da0 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -639,10 +639,10 @@ weston_output_lazy_align(struct weston_output *output) if (!wl_list_empty(&c->output_list)) { peer = container_of(c->output_list.prev, struct weston_output, link); - next_x = peer->x + peer->width; + next_x = peer->pos.c.x + peer->width; } - output->x = next_x; - output->y = 0; + output->pos.c.x = next_x; + output->pos.c.y = 0; } |