diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-12-06 07:30:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 07:30:19 -0500 |
commit | 8cb4df2a30e26c7d173d740eba36a3cd78a578b1 (patch) | |
tree | 27d6b9876735658d3d20e2899e050e2b9f21cb07 /rootston/output.c | |
parent | e539a8b2081f458ea2d272654b3074390920510e (diff) | |
parent | 0f3a061f602a1384d7e0778ecd090519e0cb2b30 (diff) |
Merge pull request #1416 from kragniz/rootston-use-box
rootston: use box for views position
Diffstat (limited to 'rootston/output.c')
-rw-r--r-- | rootston/output.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rootston/output.c b/rootston/output.c index 7017bd1f..5819833b 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -67,8 +67,8 @@ static void surface_for_each_surface(struct wlr_surface *surface, static void view_for_each_surface(struct roots_view *view, struct layout_data *layout_data, wlr_surface_iterator_func_t iterator, void *user_data) { - layout_data->x = view->x; - layout_data->y = view->y; + layout_data->x = view->box.x; + layout_data->y = view->box.y; layout_data->width = view->wlr_surface->current.width; layout_data->height = view->wlr_surface->current.height; layout_data->rotation = view->rotation; @@ -304,13 +304,13 @@ static void get_decoration_box(struct roots_view *view, struct wlr_box deco_box; view_get_deco_box(view, &deco_box); - double sx = deco_box.x - view->x; - double sy = deco_box.y - view->y; + double sx = deco_box.x - view->box.x; + double sy = deco_box.y - view->box.y; rotate_child_position(&sx, &sy, deco_box.width, deco_box.height, view->wlr_surface->current.width, view->wlr_surface->current.height, view->rotation); - double x = sx + view->x; - double y = sy + view->y; + double x = sx + view->box.x; + double y = sy + view->box.y; wlr_output_layout_output_coords(output->desktop->layout, wlr_output, &x, &y); |