diff options
author | Louis Taylor <louis@kragniz.eu> | 2018-12-05 09:01:25 +0000 |
---|---|---|
committer | Louis Taylor <louis@kragniz.eu> | 2018-12-05 19:20:50 +0000 |
commit | 0f3a061f602a1384d7e0778ecd090519e0cb2b30 (patch) | |
tree | b57221029cc9472d2204d208cc2c067538f69a2e /include/rootston | |
parent | d703ae45dde73053767ccbb3c0c3d66f2b98fd11 (diff) |
rootston: use box for views position
Diffstat (limited to 'include/rootston')
-rw-r--r-- | include/rootston/desktop.h | 2 | ||||
-rw-r--r-- | include/rootston/view.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h index 4c031e4c..cd85e794 100644 --- a/include/rootston/desktop.h +++ b/include/rootston/desktop.h @@ -99,7 +99,7 @@ void view_destroy(struct roots_view *view); void view_activate(struct roots_view *view, bool activate); void view_apply_damage(struct roots_view *view); void view_damage_whole(struct roots_view *view); -void view_update_position(struct roots_view *view, double x, double y); +void view_update_position(struct roots_view *view, int x, int y); void view_update_size(struct roots_view *view, int width, int height); void view_update_decorated(struct roots_view *view, bool decorated); void view_initial_focus(struct roots_view *view); diff --git a/include/rootston/view.h b/include/rootston/view.h index 0c75737b..e67aaf36 100644 --- a/include/rootston/view.h +++ b/include/rootston/view.h @@ -88,8 +88,7 @@ struct roots_view { struct roots_desktop *desktop; struct wl_list link; // roots_desktop::views - double x, y; - uint32_t width, height; + struct wlr_box box; float rotation; float alpha; |